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
Name | Type | Required | Description |
---|---|---|---|
formName | string | Yes | Name of the form definition from which to generate the validation js |
mergeWithFormName | string | No (default="") | Secondary form name for merging with the primary form |
validationJsJqueryRef | string | No (default="presideJQuery") | |
fieldNamePrefix | string | No (default="") | |
fieldNameSuffix | string | No (default="") | |
stripPermissionedFields | boolean | No (default=true) | |
permissionContext | string | No (default="") | |
permissionContextKeys | array | No |