--- title: "Forms - Form Field Ui On Change" slug: "forms-form-field-ui-on-change" updated: 2023-03-22T22:24:59Z published: 2023-03-22T22:24:59Z canonical: "docs.interprose.com/forms-form-field-ui-on-change" --- > ## 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. # Form Field UI On Change 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](https://cdn.document360.io/6c7303ca-5ffc-4149-8868-8ea498eee635/Images/Documentation/java.png?sv=2026-02-06&spr=https&st=2026-10-31T17%3A50%3A09Z&se=2026-10-31T18%3A50%3A09Z&sr=c&sp=r&sig=FV4NNgwY%2F1T%2BJSTW6BV4EcVI5SNHLn0c4V%2Bfwn2g3EU%3D) 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.