NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How to cancel OK
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to cancel OK (Read 4111 times)
John Fligg
Sr. Member
Posts: 361
How to cancel OK
«
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
Logged
kevin plummer
Hero Member
Posts: 1195
Re: How to cancel OK
«
Reply #1 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
«
Last Edit: January 25, 2012, 12:41:39 AM by Bruce
»
Logged
John Fligg
Sr. Member
Posts: 361
Re: How to cancel OK
«
Reply #2 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
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
How to cancel OK