...
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
if(data.yes === true)
{
show = true;
component.validate.required = true;
component.disabled = false;
}
else
{
show = false;
component.validate.required = false;
component.disabled = true;
}
|