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

Hide and show fields using checkbox

likhithas804471
Level 1
Level 1

Hi guys,

I have a form that I'm creating in acrobat. In this form I have 4-5 fields where I need to hide these fields using checkbox. I wrapped these fields in a subform and make the subform as hidden. I gave condition for checkbox as when it is checked the subform should visible and when it is unchecked the subform should be invisible. It is working... But when I generated my PDF file the data is hidden even the checkbox value is 1. If again I uncheck and check the checkbox the data is visible. I need my data to be visible when I downloaded my generated PDF form...I need a solution for this.

3 Replies
_Bruce_Robertson
Level 10
Level 10

Hi,

I'm not sure I understand the problem, can you upload your form to a file share site, like Googe Docs, or Dropbox, or whatever and post a linkto this thread.

I'm particularly confused by what you mean by "when I generated my PDF file", what do you mean by generate?

Regards

Bruce

wallyh22242762
Level 2
Level 2

Are you saying that, when you open the form after having saved it with the checkbox checked, the hidden subform isn't visible until you uncheck and recheck the checkbox?

If so, you can add some JavaScript code to the initialize event of the subform, which will be triggered when the form is first opened. It can then check whether the checkbox is checked and make the field visible if it is, something like this:

if (Checkbox1.rawValue == 1) {

  this.presence = "visible";

}