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

Needing fields to show/hide based on others in a Dynamic Stamp Dialog

Ms.Puzzler
Registered: Jan 31 2011
Posts: 2
Answered

I have successfully written a dynamic stamp that allows the user to select different checkboxes, select from three different dropdowns (Guidance, Rev, and Change) and use the Identity of the user and organization. My customer has now come back and wants the Change dropdown to show ONLY when a specific guidance is selected.
 
I have found several ways to accomplish this in forms, but not in a dialog box for a dynamic stamp. I have tried unsuccessfully to use an IF statement in the "description".
 
Any help is appreciated!
Thanks!

My Product Information:
Acrobat Pro 9.4, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
Do you want to show the word "Only" on the dropdown in the dialog? If this is the case then all you need to do is reload the list that initializes the dropdown.

If you want a dropdown on the dialog to show/hide at runtime based on the value of another dropdown, then the answer is No. The layout for a custom dialog is fixed when it is created. About the best that can be done is to enable/disable dialog fields with the "dialog.enable()" function.


Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Ms.Puzzler
Registered: Jan 31 2011
Posts: 2
Thank you for your help!

I was attempting to do the second scenario (show or hide the dropdown). I will use the enable function.

Again, thank you for the help!