getJqueryValidateJs()
Overview
public string function getJqueryValidateJs(
required string ruleset
, string jqueryReference = "presideJQuery"
, string fieldNamePrefix = ""
, string fieldNameSuffix = ""
)
Returns jQuery Validate configuration options, as a javascript string, for the given ruleset. See Validation framework for full usage documentation.
Arguments
Name | Type | Required | Description |
---|---|---|---|
ruleset | string | Yes | The name of the registered ruleset |
jqueryReference | string | No (default="presideJQuery") | Name of the global jQuery reference variable (for Preside admin, this is "presideJQuery") |
fieldNamePrefix | string | No (default="") | Prefix string to place before all field names (useful when outputting multiple instances of the same form in a single page) |
fieldNameSuffix | string | No (default="") | Suffix string to place after all field names (useful when outputting multiple instances of the same form in a single page) |