Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Stay on the field that fails validation


Recommended Posts



I have a SKU Entry layout. When a user enters a new SKU and tries to exit the SKU field, a "OnObjectValidate" script trigger is invoked. The Script checks if the SKU already exists in database,if it does,an error message is displayed. All this is working fine.


My problem is after the error message is displayed, I want the cursor to stay in the SKU field so the user can change the SKU. I have a "Go To Field[sKU]" defined in the script after the error message. BUT the cursor goes to the next field "Description". I am unable to make the cursor stay in SKU field.


Any help in this is highly appreciated. I am using FMP 10.


Thank you

Link to comment
Share on other sites

You need to add an Exit Script line with a result of False when your validation fails


You can use the Exit Script script step within the triggered script to return True or False.


  • True: The event that triggered the script proceeds.
  • False: The event that triggered the script is canceled.


See: OnObjectValidate

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use