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.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=1610
Printed Date: 19 Jun 2019 at 4:07am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


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.

Regards



Replies:
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 try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com


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

-------------
Jackie



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net