NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on January 24, 2012, 06:13:11 PM

Title: How to cancel OK
Post 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
Title: Re: How to cancel OK
Post by: kevin plummer on January 24, 2012, 06:30:46 PM
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
Title: Re: How to cancel OK
Post by: John Fligg on January 25, 2012, 12:44:39 AM
Thanks Kevin. Got the alert stuff and even the embed. Never even thought of using EXIT. That's the magic word!

John