I have a simple search form on a page in my PDF. This is just made up of a text box and a Search button.
I already have the search code working when the Search button is pressed (using search.query etc...)
I have also added some custom keystroke code to catch when the user presses Enter within the text box.
What I don't have is the syntax for pressing the Search button when Enter is pressed. I have the following so far:
Any help much appreciated
thanks
Tony
________________________________________________________________________________
I already have the search code working when the Search button is pressed (using search.query etc...)
I have also added some custom keystroke code to catch when the user presses Enter within the text box.
What I don't have is the syntax for pressing the Search button when Enter is pressed. I have the following so far:
Code:
if (event.commitKey == 2) {
// need some code here to press the submit button
}
thanks
Tony
________________________________________________________________________________