My input validation formula for the StartTime field is:@If(StartTime=NULL | StartTime = “”;@Failure(“Error message”);@Success)
if no start time is entered, the document doesn’t save (good) but the error message does not display, it simply goes to the view specified in the submit button?
any ideas?
tks,
-MC
Subject: Input validation (@Failure) doesn’t display error message in browser
Hi There,
This type of field validation is basically useless on the web. If you simply put this code in the field for a web form and validation does not succeed, the browser will go to a new page with your error message. In your case I suspect that you have an openURL in your submit button after the save so it sends you to the view you described. You will be better served to use Javascript for you error checking when developing apps for the browser.
HTH
Mark
Subject: Input validation (@Failure) doesn’t display error message in browser
Add three hidden fields at the top of the form"1. FailHeader, computed for display with the following formula: "More Information
Needed
The following required information was missing.
"
- FailFooter, computed for display with the following formula: "
<body bgcolor = "FFEFCE">Click your browser’s back arrow to return to your
document."
- FailMsg, computed for display with the following formula: DEFAULT FailMsg:=" ";
FailMsg
Then use this formula example for the field you want to check (input validation):
msg:=“Row 12 - You must select a Vendor”;
@If(On_11 = “On” & VNum_11 =“”;
@If(@BrowserInfo(“BrowserType”) = “Notes”; @Failure(msg);
@Do(@SetField(“FailMsg”; FailMsg + “
” + msg);
@Success)); @Success)