<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionValidation jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67160/evolutionvalidation-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionValidation jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67160/evolutionvalidation-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:19 GMT</pubDate><guid isPermaLink="false">12e63d05-3f83-400b-a931-588f1e1eeb3f</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67160/evolutionvalidation-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:19&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionValidation" name="jQuery_fn_evolutionValidation"&gt;&lt;/a&gt;jQuery.fn.evolutionValidation&lt;/h3&gt;
&lt;p&gt;Supports validation related to one or more button/link click events.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initializes validation.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Initializes validation.  The selector should represent one or more links/buttons that can submit the form being validated.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;validateOnLoad&lt;/code&gt;: True/false/null.  If true, validation will be performed when the page loads.  If false, it will not.  If null, the form will be validated on load if any textual input fields have values.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onValidated&lt;/code&gt;: Function called when validation is performed.  Parameters are: validationSuccessful (bool), submitButtonClicked (bool), failedValidationContext (object).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onSuccessfulClick&lt;/code&gt;: Function called when a submit button is clicked and validation was successful.  Parameters are: event.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="addField" name="addField"&gt;&lt;/a&gt;addField&lt;/h4&gt;
&lt;p&gt;Registers an input field for validation associated to the selected submit buttons/links given:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;addField&amp;#39;, inputSelector, { ruleName: true, messages: { ruleName: &amp;#39;Error message&amp;#39; } }, errorMessageSelector, validationContext)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;inputSelector&lt;/code&gt;: the jQuery selector for the input field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationRules&lt;/code&gt;: the validation rules dictionary, consisting of a validation method as key and it&amp;#39;s configuration as value. A key of messages, optional, can be specified as a dictionary of validate method name to error message (to override default error messages).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessageSelector&lt;/code&gt;: the jQuery selector for the element(s) to be populated with validation information associated to this field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationContext&lt;/code&gt;: any object providing context for this field.  This value is passed to the onValidated function associated to this set of submission links/buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;&lt;a id="Supported_validation_rules" name="Supported_validation_rules"&gt;&lt;/a&gt;Supported validation rules&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;date&lt;/code&gt;: The input contains a valid date. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dateISO&lt;/code&gt;: The input contains a valid ISO date. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;digits&lt;/code&gt;: The input contains only numeric digits. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;email&lt;/code&gt;: The input contains a valid email address. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;emailexists&lt;/code&gt;: The input contains an email address not used by a currently registered member in the community. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;emails&lt;/code&gt;: The input contains one or more valid email addresses separated by commas or semi-colons. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;equalTo&lt;/code&gt;: The input&amp;#39;s value is equal to the value of another input. The configuration value is a string jQuery selector representing the input to validate against.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;groupnameexists&lt;/code&gt;: The input contains a group name that does not currently exist within the provided parent group in the community. Configuration value should be an object with a function named &lt;code&gt;getParentId()&lt;/code&gt; that returns the integer ID of the parent group in which to search for names.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mailinglistnameexists&lt;/code&gt;: The input contains a mailing list name that is not currently in use within the community. Configuration value should be an object with a property &lt;code&gt;id&lt;/code&gt; with the integer value of the existing mailing list being edited or &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;max&lt;/code&gt;: The input represents a number that is at most the configured maximum value. Configuration value is the numeric maximum allowed.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;maxlength&lt;/code&gt;: The input must be shorter (or fewer selections of a select or checkbox group must be made) than the configured maximum. Configuration value is the numeric maximum allowed.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;min&lt;/code&gt;: The input represents a number that is at least the configured minimum value. Configuration value is the numeric minimum required.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;minlength&lt;/code&gt;: The input must be longer (or more selections of a select or checkbox group must be made) than the configured minimum. Configuration value is the numeric minimum required.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;number&lt;/code&gt;: The input represents a valid decimal number. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;passwordvalid&lt;/code&gt;: The input contains a value that meets the password requirements of the community. Configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pattern&lt;/code&gt;: The input contains a value that matches the provided regular expression. Configuration value is the string representation of the regular expression to validate against.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;range&lt;/code&gt;: A numeric input must be between a given numeric range, represented as an array of &lt;code&gt;[minimum, maximum]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;rangelength&lt;/code&gt;: The input&amp;#39;s string length must be between a given numeric length range, represented as an array of &lt;code&gt;[minimum, maximum]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;required&lt;/code&gt;: The input must contain a value. The configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;step&lt;/code&gt;: The input contains a number that is a multiple of the provided configuration value. The configuration value is the number that the input must be a multiple of.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;url&lt;/code&gt;: The input contains a valid URL. The configuration value is always &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;username&lt;/code&gt;: The input contains a value that matches the required username requirements set by the community. The configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;usernameexists&lt;/code&gt;: The input contains a value that does not exist as a username in the community. The configuration value should always be &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;wikipageexists&lt;/code&gt;: The input contains a value that does not exist as the name of a wiki page within the provided context. The configuration value should be an object with a property &lt;code&gt;wikiId&lt;/code&gt; set to the contextual wiki&amp;#39;s integer ID, &lt;code&gt;pageId&lt;/code&gt; set to the contextual wiki page&amp;#39;s integer ID, and a function &lt;code&gt;parentPageId()&lt;/code&gt; that returns the contextual parent wiki page&amp;#39;s integer ID.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="addCustomValidation" name="addCustomValidation"&gt;&lt;/a&gt;addCustomValidation&lt;/h4&gt;
&lt;p&gt;Registers a custom validation function for validation associated to the selected submit buttons/links given:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;addCustomValidation&amp;#39;, id, validationFunction, errorMessage, errorMessageSelector, validationContext)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;: the identifier for this validation rule&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationFunction&lt;/code&gt;: the function that, when called, returns a boolean identifying whether the test is valid or not.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessage&lt;/code&gt;: the text to show when this custom validation fails.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessageSelector&lt;/code&gt;: the jQuery selector for the element(s) to be populated with validation information associated to this custom rule.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationContext&lt;/code&gt;: any object providing context for this rule.  This value is passed to the onValidated function associated to this set of submission links/buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This method returns a function reference that can be called to execute this custom validation rule.  For example, the returned function could be attached to an onchange event for another jQuery plugin.&lt;/p&gt;
&lt;h4&gt;&lt;a id="isValid" name="isValid"&gt;&lt;/a&gt;isValid&lt;/h4&gt;
&lt;p&gt;Returns whether the set of fields and custom rules are valid for the selected submit button/link set.  This does not force validation to occur, but returns the current state of the form.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;isValid&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validate" name="validate"&gt;&lt;/a&gt;validate&lt;/h4&gt;
&lt;p&gt;Forces validation to occur on all fields and custom rules associated to the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validate&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validateField" name="validateField"&gt;&lt;/a&gt;validateField&lt;/h4&gt;
&lt;p&gt;Forces validation on the field or fields identified by the fieldSelector within the context of the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validateField&amp;#39;, fieldSelector)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validateCustom" name="validateCustom"&gt;&lt;/a&gt;validateCustom&lt;/h4&gt;
&lt;p&gt;Forces validation on the custom validation rule referenced by the given ID within the context of the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validateCustom&amp;#39;, id)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="reset" name="reset"&gt;&lt;/a&gt;reset&lt;/h4&gt;
&lt;p&gt;Resets the validation state for all registered fields as if the form was completely reloaded.  This is suitable for resetting the form after an AJAX submission and clearing of the form&amp;#39;s values.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;reset&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>evolutionValidation jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67160/evolutionvalidation-jquery-plugin/revision/1</link><pubDate>Wed, 26 Jun 2019 18:47:52 GMT</pubDate><guid isPermaLink="false">12e63d05-3f83-400b-a931-588f1e1eeb3f</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67160/evolutionvalidation-jquery-plugin#comments</comments><description>Revision 1 posted to API Documentation by Ben Tiedt on 06/26/2019 18:47:52&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionValidation" name="jQuery_fn_evolutionValidation"&gt;&lt;/a&gt;jQuery.fn.evolutionValidation&lt;/h3&gt;
&lt;p&gt;Supports validation related to one or more button/link click events.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initializes validation.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Initializes validation.  The selector should represent one or more links/buttons that can submit the form being validated.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;validateOnLoad&lt;/code&gt;: True/false/null.  If true, validation will be performed when the page loads.  If false, it will not.  If null, the form will be validated on load if any textual input fields have values.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onValidated&lt;/code&gt;: Function called when validation is performed.  Parameters are: validationSuccessful (bool), submitButtonClicked (bool), failedValidationContext (object).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onSuccessfulClick&lt;/code&gt;: Function called when a submit button is clicked and validation was successful.  Parameters are: event.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="addField" name="addField"&gt;&lt;/a&gt;addField&lt;/h4&gt;
&lt;p&gt;Registers an input field for validation associated to the selected submit buttons/links given:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;addField&amp;#39;, inputSelector, validationRules, errorMessageSelector, validationContext)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;inputSelector&lt;/code&gt;: the jQuery selector for the input field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationRules&lt;/code&gt;: the jQuery validation-based validation rules definition.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessageSelector&lt;/code&gt;: the jQuery selector for the element(s) to be populated with validation information associated to this field.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationContext&lt;/code&gt;: any object providing context for this field.  This value is passed to the onValidated function associated to this set of submission links/buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="addCustomValidation" name="addCustomValidation"&gt;&lt;/a&gt;addCustomValidation&lt;/h4&gt;
&lt;p&gt;Registers a custom validation function for validation associated to the selected submit buttons/links given:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;addCustomValidation&amp;#39;, id, validationFunction, errorMessage, errorMessageSelector, validationContext)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;id&lt;/code&gt;: the identifier for this validation rule&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationFunction&lt;/code&gt;: the function that, when called, returns a boolean identifying whether the test is valid or not.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessage&lt;/code&gt;: the text to show when this custom validation fails.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;errorMessageSelector&lt;/code&gt;: the jQuery selector for the element(s) to be populated with validation information associated to this custom rule.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;validationContext&lt;/code&gt;: any object providing context for this rule.  This value is passed to the onValidated function associated to this set of submission links/buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This method returns a function reference that can be called to execute this custom validation rule.  For example, the returned function could be attached to an onchange event for another jQuery plugin.&lt;/p&gt;
&lt;h4&gt;&lt;a id="isValid" name="isValid"&gt;&lt;/a&gt;isValid&lt;/h4&gt;
&lt;p&gt;Returns whether the set of fields and custom rules are valid for the selected submit button/link set.  This does not force validation to occur, but returns the current state of the form.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;isValid&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validate" name="validate"&gt;&lt;/a&gt;validate&lt;/h4&gt;
&lt;p&gt;Forces validation to occur on all fields and custom rules associated to the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validate&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validateField" name="validateField"&gt;&lt;/a&gt;validateField&lt;/h4&gt;
&lt;p&gt;Forces validation on the field or fields identified by the fieldSelector within the context of the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validateField&amp;#39;, fieldSelector)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="validateCustom" name="validateCustom"&gt;&lt;/a&gt;validateCustom&lt;/h4&gt;
&lt;p&gt;Forces validation on the custom validation rule referenced by the given ID within the context of the selected submit button/link set.  The result of the validation is returned.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;validateCustom&amp;#39;, id)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="reset" name="reset"&gt;&lt;/a&gt;reset&lt;/h4&gt;
&lt;p&gt;Resets the validation state for all registered fields as if the form was completely reloaded.  This is suitable for resetting the form after an AJAX submission and clearing of the form&amp;#39;s values.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionValidation(&amp;#39;reset&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>