I would like to call a function to submit a search form when the user presses on the carriage return (enter) in the notes client. Currently it actually places a new line in a text input field (which I find very counter intuitive).
I have searched through this forum and all I have found is code for the web. Surely I can trap a key press in the client? There must be a way!!
Please help a newbie out!
Subject: Submit on Carriage Return
You can’t trap key events in the Notes client (I would love to have such a feature in Notes too!)
This can be a solution for your problem :
open the search form as a dialogbox. By default the Enter-key is then for submitting and the Escape-key is for canceling. You can use the standard buttons on the dialogbox-form, or you can use you own buttons (with your own code). In the button properties, you will see that you can make the button act as a ‘OK’-button or a ‘Cancel’-button.
BTW: if you don’t want to put a newline in a text field when the user taps the ‘Return’-key, make it a ‘native OS’ type of field and uncheck the ‘allow mulitple lines’ property.
Search te help files for ‘dialogbox’ for detailed information.
Subject: Submit on Carriage Return
I don’t think it is easy to do that. You will have to play with the field events to make it work, but I don’t think it would be as cut and dry as you hoped.
It would be interesting to know if you get it to work.
I have seen application make it work by using the tab – which was playing with the field existing event, but not the return character.
HTH – Cheers – Email in profile.
Subject: Submit on Carriage Return
I have been looking for code for the web for this exact situation. Could you push me in the right direction to find the thread?