create_table_of_elementsAdmin-only MCP tool.
Create a new Table Of Elements in a Formulize form.
Newly created elements appear on the pages of form screens where all other elements in the form already appear. To add a newly created element to a form screen page which only has some existing elements, use the update_form_screen tool.
Element: Table of elements (grid).
Description: A table that contains elements from the form, so they can be displayed together in rows and/or columns. This is useful for display first name/last name boxes, or parts of addresses, like province and postal code, etc.
Properties:
Examples:
| Property | Type | Required? | Description |
|---|---|---|---|
| form_id | integer | Required | Required. ID of the form that this will be part of. |
| type | string (one of: grid) | Required | Required. The type of Table Of Elements to create. |
| caption | string | Required | Required. The label for the Table Of Elements as it will appear to users in forms and in lists. |
| properties | object | Required | Required. Additional configuration settings for the Table Of Elements. The available properties depend on the element type. See the tool description for examples of what properties are needed for different element types. |
| help_text_for_users | string | Optional | Optional. A longer description or help text for the Table Of Elements, shown to users filling out the form. This is NOT an internal notes field, this content appears as part of the element. |
| display_conditions | array of object | Optional | Optional. A given form entry must meet these conditions in order for this element to be displayed; otherwise it is not shown. Each condition includes an element, an operator, a value, and a ‘type’ flag indicating the logical set the condition belongs to: ‘match-all’ or ‘match-one-or-more’. Multiple match-all conditions are joined with a logical AND operator, and multiple match-one-or-more conditions are joined with a logical OR operator. Provide a list of conditions to restrict when the element is displayed; if you omit this property (or provide an empty array) it has no conditions and is always displayed. When setting conditions based on linked elements, do not use foreign keys as values, and instead use the readable value which this tool understands automatically. Use the special value “{BLANK}” (without quotes) to match blank values.
|
| placement | string | Optional | The canonical position of the element in the form. This order is used on every form screen page that this element has been added to (newly created elements are automatically added to all pages that currently have all existing elements; to add an element to a page that has only some existing elements, use the update_form_screen tool). Use “top” to make this element the first element in the form, use “bottom” to make this element the last (which is the default for new elements), or use an element handle to place this element immediately after that element (based on the live state of the form at the time of this specific request; re-fetch get_form_details first if you need to see the current element order). On updates, omit this to leave the current position unchanged. |