Skip to main content
Participating Frequently
December 30, 2024
Question

Needing script

  • December 30, 2024
  • 1 reply
  • 542 views

I'm working on a fillable form in Adobe and need assistance with a dynamic text box. The text box should populate based on a dropdown selection, with a specific criteria that varies depending on a secondary dropdown selection. I'm having trouble developing the script to achieve this functionality and would appreciate any guidance or support.

This topic has been closed for replies.

1 reply

PDF Automation Station
Community Expert
Community Expert
December 30, 2024

Enter the following custom calculation script in the text field, changing the field names and values to the actual field names and values:

if(this.getField("Dropdown1").value=="valueA" && this.getField("Dropdown2").value=="valueB")

{event.value="valueC";}

else

{event.value="";}

treg_9435Author
Participating Frequently
December 30, 2024

Thank you. Just so I understand, I would put what I want valueC to be inside {event.value="";} correct?

 

PDF Automation Station
Community Expert
Community Expert
December 30, 2024

No.  That line gives the field no value if the conditions are not met.  You would replace valueC with what you want the value to be.