getValidationJs()

Overview

public any function getValidationJs(
      required string  formName               
    ,          string  mergeWithFormName       = ""
    ,          string  validationJsJqueryRef   = "presideJQuery"
    ,          string  fieldNamePrefix         = ""
    ,          string  fieldNameSuffix         = ""
    ,          boolean stripPermissionedFields = true
    ,          string  permissionContext       = ""
    ,          array   permissionContextKeys  
)

Returns raw javascript validation logic for the given form.

Arguments

NameTypeRequiredDescription
formNamestringYesName of the form definition from which to generate the validation js
mergeWithFormNamestringNo (default="")Secondary form name for merging with the primary form
validationJsJqueryRefstringNo (default="presideJQuery")
fieldNamePrefixstringNo (default="")
fieldNameSuffixstringNo (default="")
stripPermissionedFieldsbooleanNo (default=true)
permissionContextstringNo (default="")
permissionContextKeysarrayNo