Add Custom Form Section Field
add_custom_form_section_fieldPlace a pool field at the end of a custom form section, or add a static text label (label=true, no field_id). Each pool field can appear once per form. Set mandatory, visible, a default_value and show-when conditions for this form only. A hidden field with a default_value is how a form records a fixed value (e.g. a source tag) on every submission.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>",
"form_id": "<form_id>",
"section_id": "<section_id>"
},
"name": "add_custom_form_section_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Text shown on this form. Defaults to the pool field's name; required for a label. | |
| label | No | true adds a static text block instead of a question; give its text in name. | |
| form_id | Yes | Custom form UUID returned by read_custom_forms. | |
| visible | No | Whether attendees see it. Defaults to true. | |
| event_id | Yes | Event UUID returned by search_events. | |
| field_id | No | Pool field UUID from read_custom_forms list_fields. Omit when label is true. | |
| mandatory | No | Whether attendees must answer it. Defaults to false. Not enforced while the field is hidden. | |
| show_when | No | Show this field only when the attendee picked one of `options` in another choice field placed in the same section. Several conditions are OR-ed. Replaces the field's existing conditions; [] removes them. | |
| section_id | Yes | Section UUID returned by read_custom_forms get_form. | |
| description | No | Optional help text shown on this form. | |
| lock_height | No | Labels only: keep the label at a fixed height in the app. | |
| default_value | No | Default answer for this field on this form. A visible field starts out with it and the attendee may change it. A hidden field (visible=false) cannot be answered, so the server stores the default on every submission. Supported for text, number, email, url, phone_number, date, time, switch, single_select, radio, multi_select, checkbox fields: an option internal_name for single_select and radio, an array of option internal_names for multi_select and checkbox, "true"/"false" for switch, and a string otherwise (validated as an email, phone number, URL, number, date or time where the type requires). Pass null to clear it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | ||
| message | Yes | ||
| section_field | Yes |