cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting for Radio Button

Former Member
0 Kudos

Enabling/Disabling of UI Element based on selection of Radio Button. In my case I have two radio buttons : Yes and No

If the user selects No then some of the desired fields should be visible and hidden . Could you please help me on this by providing some Samples or stuff. Specifically to FormCalC.

Accepted Solutions (0)

Answers (1)

Answers (1)

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Neha,

On Select event of Radio button, you have to check the value selected and if it is "No"

then hide the field

I am assuming the value to be 2 when you are selecting radio button NO

This is the sample javascript code. Hope you will get an idea.

var checkVal = this.rawValue;

if ( checkVal == 2)

{

xfa.resolveNode("<FieldName>").presence = "invisible";

}

Please contact me if you are facing any problem with the sample code.

Cheers

Satya

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

any update to the status of the issue .

cheers

Satya

Former Member
0 Kudos

Hi Neha,

Please save your form as a dynamic pdf form.

This option wil come when u save the form , in the drop down u can select as dynamic pdf form

Regards,

Sasi