These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hidden Fields not showing when form is submitted.

realname
Registered: Aug 15 2008
Posts: 93
Answered

I have a form that has several hidden subfields. These fields are displayed depending on which radio button is selected, however, when the form is submitted, those fields are once again hidden although the appropriate corresponding radio button still shows (i.e. "yes") which would have prompted the field to become visible. When I receive the form and see that the "yes" button is selected, clicking the "no" then the "yes" again will show the field with the fields completed.

Why does the field not remain visible when the form is submitted and what can I do to fix this? It is a simple javascript showing and hiding the field on a group of 2 radio buttons (yes or no).

Thanks!

My Product Information:
LiveCycle Designer, Windows
pforms
Registered: Nov 17 2009
Posts: 87
And did you exclude from layout?
realname
Registered: Aug 15 2008
Posts: 93
Yes, the subform is hidden-exclude from layout. Everything works as it should except that the subform is hidden again when it is submitted.
pforms
Registered: Nov 17 2009
Posts: 87
can you post it or email it and I'll take a look
realname
Registered: Aug 15 2008
Posts: 93
Where do I post it?
jonom
Registered: Jan 31 2008
Posts: 133
Couple of things...

Under File>Form Properties>Defaults tab make sure that "Preserve scripting changes..." is set to "Automatically".If that doesn't fix all of it then you need to set up scripts that check the values that set the presence of the hidden sections when the form opens.

You can do this on the docReady event of on the fields that control hidden sections - you should be able to basically copy the script from the event you are using to do the controlling and putting it in the docReady event of the same field.

Hope that makes sense!
realname
Registered: Aug 15 2008
Posts: 93
Thank you. I checked the form and the default was set to manual; changing it to automatic seems to have solved the problem.