Can you script dropdown field outputs to run document level functions?

Have a dropdown field ddSheets with outputs of "Select", "1 sheet", "2 sheet", "3 sheet" and "4 sheet". Was hoping that on the selection of ddSheets option, that a document level function for that specific selection would run i.e. Sheet1(), Sheet2(), Sheet3(), Sheet4().


Alistair Craigen


Voted Best Answer

Sure. You can use this code as the custom validation script of the field:

if (event.value=="1 sheet") Sheet1();
if (event.value=="2 sheet") Sheet2();

etc.

Just make sure you tick the option to commit the selected value immediately under the field's Properties, Options tab.

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


By Gilad D (try67)   


Please specify a reason: