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

Radio Button to make other field Mandatory

$
0
0

I have two Radio Buttons that I want when clicked on (either one) to make a Number Field mandatory. I have viewed many websites on setting a mandatory field but the script I am using will not work. I have tried a couple ways of writing it but I seem to be missing something.

I have used this script in the Show of: click & change

 

Here is the script that I'm using right now.

 

if  (this.rawValue==1)   

{

AssemblyNu-1.mandatory ="error";

}

else

{

AssemblyNu-1.mandatory ="disabled";

 

 

And this one:

 

 

 

 

if (this.rawValue==2)

 

{

AssemblyNu-1.mandatory ="error";

 

 

}

else

{

 

 

AssemblyNu-1.mandatory ="disabled";

 

 

 

 

 

}

 

 

 

 

Thanks,

HHud5757


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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