addItem()
Overview
public string function addItem(
required string formId
, required string itemType
, required struct configuration
, string question = ""
)
Adds a new item to the form. Returns the ID of the newly generated item
Arguments
Name | Type | Required | Description |
---|---|---|---|
formId | string | Yes | ID of the form to which to add the new item |
itemType | string | Yes | ID of the item type, e.g. 'content' or 'textarea', etc. |
configuration | struct | Yes | Structure of configuration options for the item |
question | string | No (default="") |