Skip to content

requiredIfIndex

jdubs edited this page Oct 23, 2016 · 1 revision

Overview

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

Parameters

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

( comparer ) The index to trigger requirement of validators.

( options ) Includes all optional properties applied to all validators

Example

[[Name]] [[Title]]
spec['Name'].requiredIfIndex(spec['Title'], 2);

Clone this wiki locally