Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

remove field permamently


Not applicable

Is it possible that when a user open up a form (reader extended), and upon clicking a button, delete away certain fields in the form, like a textbox or subform. And when user save and reopen the form, the deleted fields will not appear. Possible? Thanks.
4 Replies


Level 10
If you make the fields hidden then they exist but they are not part of the layout. You will have to store the state of the form so that you can set it when the form opens for the second time.


Not applicable
Hi Paul,

There is a problem, if the user disable java script from the Adobe Reader, he or she will be able to view the hidden fields when the form is opened for the second time. Any solution?

Thank you.


Level 10
Then the only other way I can think of is to have two different templates and export the data out of the 1st one and import it into the second one. If the fields are not in the second one then the data for those fields is ignored.


Not applicable
Hi Mike,

You can also set a new hidden field value to a new value after the button is clicked. Then in the initialize of the form you can hide those fields by looking at the given hidden value.

//at first

XHidden = 0;

//when button is clicked

XHidden = 1;

if(XHidden == 1)

field1.presence = "hidden";