Skip to content
jdubs edited this page Oct 23, 2016 · 1 revision

Overview

Accommodates custom function validators.

Parameters

( options ) Includes all optional properties applied to all validators

( func ) Function for validation. Must return true or false.

Example

[[Name]]
spec['Name'].custom(
	function() {
		var result = spec['Name'].value == 'The Suns';
		return result;
	},
	{ message: "You must type (The Suns)" }
);

Clone this wiki locally