Custom Form Validation (JavaScript)
    • 22 Mar 2023
    • 1 Minute to read
    • Contributors
    • PDF

    Custom Form Validation (JavaScript)

    • PDF

    Article summary

    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.



    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence