Print Page | Close Window

Show/Hide A Field With A Popup

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
Printed Date: 17 Sep 2019 at 11:39am
Software Version: Web Wiz Forums 11.10 -

Topic: Show/Hide A Field With A Popup
Posted By: Jackie
Subject: Show/Hide A Field With A Popup
Date Posted: 13 Jul 2015 at 4:48am
Hi all, just wondering if its possible to have a popup asking if you want to show or hide a field?

Click on the button and then the action is undertaken.


Posted By: try67
Date Posted: 13 Jul 2015 at 1:43pm
Sure. You can do it with a simple alert window, like this:

var reply = app.alert("Click Yes to show the field, or No to hide it.",2,2);
if (reply==4) this.getField("FieldName").display=display.visible;
else if (reply==3) this.getField("FieldName").display=display.hidden;

- Acrobat Expert - Contact me personally at
Check out my custom-made scripts website:

Posted By: Jackie
Date Posted: 15 Jul 2015 at 4:09am
Thank much appreciated


Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -