Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Embed for additional form field validation 1998-07-11 -- Valentine Russev >I have a form and I want to do some additional validations before I allow
>the window to close and update the record.
In ThisWindow.TakeCompleted, Priority 2800 try something like this:
IF YourTestFailed
IF YouWantToStayInTheForm
RETURN Level:Benign
ELSIF YouWantToCancelWithoutSave
SELF.SetResponse(RequestCancelled)
SELF.CancelAction = Cancel:Cancel
RETURN Level:Benign
ELSIF YouWantToSaveAnyway
!Do Nothing
END
Steve Gallifant notes:
My usual method is to embed the code in Accepted for the OK button (priority
first) and then CYCLE to keep the OK from processing.
Today is November 21, 2024, 7:01 am This article has been viewed 35183 times.
|
|