- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Validate Data
- Use Custom JavaScript to verify data exists or meets expectations
- Display an error if valid data doesn't exist when saving the completed form
Custom JavaScript
Must be entered and saved to the form's Custom Validation section
Setup
Custom Validation can be entered under Setup -Forms -Form -Selected Form Custom Validation (JavaScript) section
Here is an example of Custom Validation JavaScript:
if (form.lookupFieldValue("VERIFY_ADDRESS") === "1" && form.lookupFieldValue("CORRECT_MAILING_ADDRESS") === "")
{
errors.add("An address must be entered, before this record can be saved");
}
Watch the video below for additional guidance.
Was this article helpful?