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

NameTypeRequiredDescription
rulesetstringYesThe name of the registered ruleset
jqueryReferencestringNo (default="presideJQuery")Name of the global jQuery reference variable (for Preside admin, this is "presideJQuery")
fieldNamePrefixstringNo (default="")Prefix string to place before all field names (useful when outputting multiple instances of the same form in a single page)
fieldNameSuffixstringNo (default="")Suffix string to place after all field names (useful when outputting multiple instances of the same form in a single page)