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
| Name | Type | Required | Description |
|---|---|---|---|
| formId | string | Yes | The ID of the form to render |
| layout | string | No (default="default") | The form layout to use |
| configuration | struct | No | Struct containing any custom configuration that may be used by the viewlets used to render the form |
| validationResult | any | No (default="") | |
| coreLayoutViewlet | string | No (default="formbuilder.core.formLayout") |