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

...

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;
}