Form Field UI On Change
    • 22 Mar 2023
    • 1 Minute to read
    • Contributors
    • PDF

    Form Field UI On Change

    • PDF

    Article summary

    Form field validation can be set using custom JavaScript in Ui On Change.

    Default state (before field changes)

    • Set with trigger: onBeforeAccountFormView
    • Set Using JavaScript
    • Set in the action path associated with the trigger


    When field changes

    • Behavior occurs when the data in the associated field changes
    • Set using JavaScript
    • Will vary based on the JavaScript use din the form field's Ui on Change property


    Setup

    JavaScript can be entered under Setup - Forms - Form - Form Fields - Selected Form Field - Ui On Change

    mceclip1.png

    Here is an example of JavaScript that might be used in a Form Field's Ui On Change:

    if (this.value === '0')
    {
    document.getElementById('formCellLabel.MVTO.ACCURATE_LETTER').style.visibility = 'visible';
    document.getElementById('formCellField.MVTO.ACCURATE_LETTER').style.visibility = 'visible';
    }

    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