mergeForms()
Overview
public struct function mergeForms(
required string formName
, required any mergeWithFormName
, boolean autoMergeSiteForm = true
)
Merges the definitions of two or more forms, register the new form and and returns the raw structure of the merged form as the result.
Arguments
Name | Type | Required | Description |
---|---|---|---|
formName | string | Yes | Name of the source form |
mergeWithFormName | any | Yes | Name (or array of names) of the form(s) to merge with |
autoMergeSiteForm | boolean | No (default=true) | Whether or not to automatically merge any matching form definitions in the current active site template |