requiredIfValue

jdubs edited this page Oct 23, 2016 · 1 revision

Overview

Sets conditional entry requirement entry on spec when value of spec matches the comparer parameter.

Parameters

( compared ) Spec control to validate when comparison is true.

( comparer ) The value to trigger requirement of validators.

( options ) Includes all optional properties applied to all validators

Example

[[Name]] [[Title]]
spec['Name'].requiredIfValue(spec['Title'], 'Vice President');

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.