Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Making a field mandatory only when visible?

$
0
0

Hi

 

I want to make fileds only mandatory when they are visible

 

I thought this code would work but it doesnt seem to do anything?

 

Here is my code currently - any ideas guys?

 

if (form1.Page1.DropDownList1.presence == "visible") {

form1.Page1.DropDownList1.mandatory = "error";

 

}

if (form1.Page1.DropDownList1.presence == "hidden") {

form1.Page1.DropDownList1.mandatory = "disabled";

 

}

 

Thanks in annnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnticipation!

 

Ellis


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>