junito2001 Posted December 5, 2013 Posted December 5, 2013 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.
Sandy Lynn Posted December 10, 2013 Posted December 10, 2013 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.
junito2001 Posted December 13, 2013 Author Posted December 13, 2013 ... 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...?
Recommended Posts
This topic is 4270 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now