update_static_content_element
Admin-only MCP tool.
Update an existing Static Content Element in a Formulize form.
Static Content Elements have different properties depending on their type.
You must use the valid properties for each type. Here is a complete list of available types, their properties, and examples:
Element: Captioned Content (captionedContent).
Description: A block of static text or HTML shown in the right column of the form’s two-column layout, with the caption shown to users as the label in the left column (just like a normal form element). Use it to present read-only information alongside a label. It does not collect any data.
Note: For this type, the caption IS shown to users as the left-column label.
Properties:
- content (string, the text or HTML to display in the right column. You can include values from other elements in the current entry by putting an element handle in curly brackets, ie:
{element_handle}. Plain text and basic HTML are supported. PHP code is not supported via this tool. Lay out and style HTML with the Formulize UI classes, such as fz-callout for instructions: the formulize_ui topic of the get_documentation tool, if it is available, lists them.)
Examples:
- A labelled note: caption “Status” with
{ content: "This application is awaiting review." } - HTML with a reference to the value of another element:
{ content: "Total owing: <strong>{amount_due}</strong>" }
Element: Full Width Content (fullWidthContent).
Description: A block of static text or HTML that spans the entire width of the form. Use it for instructions, headings, or contextual information shown to the people filling out the form. It does not collect any data.
Note: For this type, the caption is an internal label only and is NOT shown to users. If you leave the content empty, the caption text will be displayed instead.
Properties:
- content (string, the text or HTML to display. You can include values from other elements in the current entry by putting an element handle in curly brackets, ie:
{element_handle}. Plain text and basic HTML are supported. PHP code is not supported via this tool. Lay out and style HTML with the Formulize UI classes, such as fz-callout for instructions: the formulize_ui topic of the get_documentation tool, if it is available, lists them.)
Examples:
- A simple instruction spanning the form:
{ content: "Please complete all of the fields below." } - HTML with a reference to the value of another element:
{ content: "<strong>Welcome, {first_name}!</strong>" }
Properties
| Property | Type | Required? | Description |
|---|---|---|---|
| element_identifier | string or integer | Required | |
| caption | string | Optional | Optional. The new label for the Static Content Element as it will now appear to users in forms. |
| properties | object | Optional | Optional. Updated configuration settings for the Static Content Element. The available properties depend on the element type. See the tool description for examples of what properties are needed for different element types. Use the get_form_details tool to see all the element types for the existing elements. |
| display | boolean | Optional | Optional. Whether the Static Content Element is displayed in the form or hidden. Default: true. |
| 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. Only include this property when you intend to change the conditions: omit it entirely to leave any existing conditions unchanged; provide the list of conditions to set or replace them; or provide an empty array (
|
| 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. |