renderForm()

Overview

public string function renderForm(
      required string formId           
    ,          string layout            = "default"
    ,          struct configuration    
    ,          any    validationResult  = ""
    ,          string coreLayoutViewlet = "formbuilder.core.formLayout"
)

Renders the given form within a passed layout and using any passed custom configuration data.

Arguments

NameTypeRequiredDescription
formIdstringYesThe ID of the form to render
layoutstringNo (default="default")The form layout to use
configurationstructNoStruct containing any custom configuration that may be used by the viewlets used to render the form
validationResultanyNo (default="")
coreLayoutViewletstringNo (default="formbuilder.core.formLayout")