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:
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.
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".
used access attribute to control the fields like you said. works fine.
thanks a lot.