cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Adobe Forms

Former Member
0 Kudos
562

I am currently working with NWDS 7.14 and Life Cycle Desiger 7.1. My Requirement is the following: dependent on a user input (e.g. selected checkbox) i want to switch the attus of certain ui elements to "invisble".According to some previous posts, I use the follwing JS-code to achieve the described functionality:

var check = CheckBox1.rawValue;

if (check== '1') {

Subform3.presence="visble";

Subform3.presence="hidden";

}

(the code lies in the exit event of the checkbox)

unfortunately, nothing happens, the code does not work.

Could anyone please provide help?

View Entire Topic
vaibhav_tiwari
Contributor
0 Kudos

Hi Alexander,

ACF is a pluggin for UI elements like buttons, textfields, radiobuttons etc. We have to install ACF in order to make these fields work correctly. If you are writing the same code as you have mentioned in the post then change it as following:

1. if you want to show the subform.

var check = CheckBox1.rawValue;

if (check== '1') {
Subform3.presence="visible";
}

2. if you want to hide the subform.

var check = CheckBox1.rawValue;

if (check== '1') {

Subform3.presence="hidden";

}

I hope it will work.

Regards,

Vaibhav Tiwari.