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

NameTypeRequiredDescription
formNamestringYesName of the source form
mergeWithFormNameanyYesName (or array of names) of the form(s) to merge with
autoMergeSiteFormbooleanNo (default=true)Whether or not to automatically merge any matching form definitions in the current active site template