Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 258: | Line 258: | ||
// The user remains in the Entry Edit card | // The user remains in the Entry Edit card | ||
// and will be advised the application does not pass criteria | // and will be advised the application does not pass criteria | ||
if (e.field("Years in city") | if (e.field("Years in city") <== 2) { // Sample field validation | ||
message("Application inadequate"); // You'll want more | message("Application inadequate"); // You'll want more | ||
cancel(); // This will abort the save, but continue the script | cancel(); // This will abort the save, but continue the script |