December 5, 201312 yr Hello everyone again... and let me just start off by saying how HELPFUL this forum is!!! I have a form which has a OnLayoutEnter script which does as follows: Enters Find mode Show Custom Dialog box Performs find Is there a way I can loop the custom dialog box until the user actually enters a search or if the search didn't find any records matching the query? I ask this because I have some users who are extremely computer illiterate and some times the cursor is no longer in the textbox and they don't realize and they hit enter and of course it gives them the common error message.
December 10, 201312 yr Sure after the custom dialog box in your script you insert an if statement that checks if the entry field used in the dialog box has a value if it does not you then repeat the custom dialog, you can repeat this as many times as you think necessary. I usually change the message to something like "You did not enter a value please try again." You can also trap for no records found and give a different dialog box for that. You will need to "Set error capture Off" before the dialog boxes start to be able to use your own dialog for no records found.
December 13, 201312 yr Author ... You can also trap for no records found and give a different dialog box for that. You will need to "Set error capture Off" before the dialog boxes start to be able to use your own dialog for no records found. That is exactly what I want to do but when I test if isEmpty(field) it does not work...?
Create an account or sign in to comment