Copy link to clipboard
Copied
Can someone pleae help me figure out a way to search a pdf for a the value selected from a dropdown box. The document is being used at workstations that do NOT have keyboards, only a mouse. I have made many attempts on my onw with no success. Any assitance would be greatly appreciated!
OK, then in that case you can use this code as the drop-down's custom validation script (just make sure to tick the option to commit the selected value immediately, under the field's Properties - Options tab):
search.query(event.value, "ActiveDoc");
Copy link to clipboard
Copied
That's a ridiculous set up, but OK...
So how do you want it to work, exactly? Do you want the Advanced Search window to open and search the current file with the selected value in the drop-down the moment it's selected?
Copy link to clipboard
Copied
That is correct. It would be great if possible. Thanks for your time
Copy link to clipboard
Copied
OK, then in that case you can use this code as the drop-down's custom validation script (just make sure to tick the option to commit the selected value immediately, under the field's Properties - Options tab):
search.query(event.value, "ActiveDoc");
Copy link to clipboard
Copied
Awesome! That should do the trick. Would it be to much work to have a button call the command?
Thanks again!
Copy link to clipboard
Copied
No, that's easily done. Let's say the name of the drop-down is "Dropdown1". Just use this code as the Mouse Up event of your button:
search.query(this.getField("Dropdown1").valueAsString, "ActiveDoc");
Find more inspiration, events, and resources on the new Adobe Community
Explore Now