cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to hide fields using java script

i042339
Product and Topic Expert
Product and Topic Expert
0 Likes
198

Hi,

I have some fields in my form that I want to hide on click of one checkbox.

I have added the javascript into click event(change event also) of check box when previewing in the Adobe LiveCycle Designer, the fields are hidden successfully when I select the checkbox. But when I deployed the same PDF, the fields are not hiding on click of check box.

I have install ACF and set it as dynamic form.

My Adobe Life Cycle Designer Version - 7.1

I have put some alert statement to access the presence property of the object. The property is invisible in alert statement but could not understand why it is not hiding the fields.

Another important observation if I am writing the same code in initialise event then it is hiding field.

Please help me in this.

Regards

Satya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Satya,

I am facing the same issue. Were you able to fix it ?

Before deploying the xdb, the script works fine. After deployment it does not work.

I used the code :


xfa.resolveNode("Page11.Sub_PayTransGenDataCorpAdd").presence = "hidden";
xfa.resolveNode("Page11.Sub_BranchAddress").presence = "hidden";

Please advise..

Regards,

Vibha