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
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.