Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The form example described is available for download here.


Example 2


If you want to show a field if a check box is checked or not. Then also make that field required when the box if checked.

My api name for my check box is yes. The first half checks yes, if yes, make the field required and display it. Else, if false, don't display the fields and don't make them required.

Code Block
languagejs
titleAdvanced Conditional Rule
linenumberstrue
if(data.yes === true)
{
    show = true;
component.validate.required = true;
    component.disabled = false;
   

}
else
{
    show = false;
component.validate.required = false;
    component.disabled = true;


}

Image AddedImage Added