i have a form which consists of several checkboxes and text or numeric fields. i want checkboxes to control the visibility of the other fields. i use the following script:
ygh.#subform[0].checkBox1::change - (JavaScript, client)
if(this.rawValue==0)
numericField2.presence="invisible";
else
numericField2.presence="visible";
it works fine... but initial page comes with fields that are all enabled. according to the checkbox changes, they respond, but i want to see them disabled on the first screen.
by the way, when i change the visibility option to "Invisible" in the object->Field tab, it succeeds but then the script does not work at all.
any solutions or offers will be appreciated.
thanks in advance.
MC
Solved! Go to Solution.
Views
Replies
Total Likes
Change the check box access property to "readOnly". For example, form1.page1.cb.access = "readOnly";
To make the check box user entered optional change the check box access property to "". For example, form1.page1.cb.access = "";
Rather than use "invisible" use "hidden".
Steve
Views
Replies
Total Likes
Change the check box access property to "readOnly". For example, form1.page1.cb.access = "readOnly";
To make the check box user entered optional change the check box access property to "". For example, form1.page1.cb.access = "";
Rather than use "invisible" use "hidden".
Steve
Views
Replies
Total Likes
used access attribute to control the fields like you said. works fine.
thanks a lot.
MC
Views
Replies
Total Likes