NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on January 24, 2012, 06:13:11 PM
-
I need to handcode some validation on my form so that if some values are missing then OK throws a message and returns to the form.
I have found the embed point to use but not sure how to actually cancel.
Thanks
John
-
Embed is generally ValidateAll (%ValidateRecordEnd:
If validation fails
INV:Number:IsInvalid = true ![editor note] remember this line as well Kevin
Loc:Invalid = 'INV:Number' !field to return focus to on form
Loc:Alert = 'Your Message'
Exit
End
-
Thanks Kevin. Got the alert stuff and even the embed. Never even thought of using EXIT. That's the magic word!
John