Documentation Index

Fetch the complete documentation index at: https://docs.interprose.com/llms.txt

Use this file to discover all available pages before exploring further.

Custom Form Validation (JavaScript)

Prev Next

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

mceclip2.png


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.