create_form_screen

Admin-only MCP tool.

Create a new form screen for an existing form. Forms are created with the create_form tool. Each form can have one or more form screens, which are different versions of the form that users interact with to create and edit entries. Form screens are organized into one or more pages of elements, with optional tabs, navigation buttons, and per-page display conditions. Use this tool to create a new form screen that presents form elements in a certain way. Use get_form_details to find the element handles to specify for the pages. The order of elements on the page is not controlled here; you must control element order using the ‘placement’ parameter of the create element and update element tools. To modify an existing screen use update_form_screen (which can add/remove individual elements on a page without redefining the whole screen). Use get_screen_details or list_screens to inspect screens.

Properties

Property Type Required? Description
form_id integer Required

Required. The id of the form this screen belongs to.

title string Required

Required. The name of the screen.

handle string Optional

Optional. A short name for this screen, unique across every screen in the system. Spaces and hyphens become underscores, anything else that is not a letter, number or underscore is stripped, and capitals are lowered. If the name you ask for is already in use by another screen, it is adjusted until it is unique. Leave it out and the handle is made from the screen’s title, which is usually what you want.

anonymous_access_needs_passcode boolean Optional

Optional. When anonymous visitors can reach this screen, require them to enter a passcode that they will have received prior, in order to open a particular entry. On by default. Turning it off means anyone with the link can open the entry, so only do it for truly public access situations. The Anonymous Users group (group 3) will also need permission for the form, use the set_form_permissions tool to do that.

is_default_form_screen boolean Optional

Optional. Make this the default form screen. When a menu item or URL leads to the form without naming a screen, and the user is limited to only interacting with a single entry in the form, Formulize will default to showing this screen. The default form screen is also used by most list screens when users click on entries to display or edit them. Setting true replaces whatever form screen held the position before - a form only has one default form screen at a time. If you are updating, setting false will remove the default ‘.form.’ screen, but only if this screen is currently the one holding it; on any other screen false does nothing, so it cannot displace a different screen by accident.

pages array of object Required

The ordered list of pages in the form screen. Users move between pages using tabs and/or navigation buttons. Most pages contain a list of form elements, but a page can instead contain custom PHP code or embed pages from another form screen. Each page can also have display conditions that control whether it is shown.

show_navigation_tabs boolean Optional

Optional. Show page-navigation tabs across the top of the form, one per page. Default is true. On an exceptionally long form with many pages, or a form where jumping to an arbitrary page is not desired, you may want to set this to false.

show_save_and_go_back_button boolean Optional

Optional. Show the Save and Go Back button at the bottom of the form, which saves and goes to the previous page. On the first page it is the Save and Close button instead, which saves and leaves the form. Default is false. Useful on a long form with many pages, especially when show_navigation_tabs is false.

show_save_button boolean Optional

Optional. Show the Save button at the bottom of the form, which saves and stays on the page. Only shown to users who can save the entry. Default is true.

show_close_button boolean Optional

Optional. Show the Close button at the bottom of the form, which leaves the form without saving. Default is true.

show_save_and_continue_button boolean Optional

Optional. Show the Save and Continue button at the bottom of the form, which saves and goes to the next page. On the last page it is the Save and Finish button instead. Default is false. A form screen with a Thanks page always has this button, because it is how users reach the Thanks page, so it cannot be turned off while show_thanks_page is true.

show_page_indicator boolean Optional

Optional. Show a ‘page X of Y’ indicator. Default is false.

show_page_selector boolean Optional

Optional. Show a drop-down menu for jumping directly to a page. Default is false.

show_page_titles boolean Optional

Optional. Show each page title as a heading at the top of the page. Default is false. If navigation tabs are turned off, this is the only way for the user to see the page titles.

columns integer (one of: 1, 2) Optional

Optional. Lay out each page in one or two columns. In two-column layout the element captions go in column one and the inputs in column two, collapsing to one column on phones. Default is 2.

column1_width string Optional

Optional. CSS width of the first column (eg ‘20%’, ‘200px’, ‘auto’). In a one-column layout this is the width of the whole form and defaults to ‘auto’. In a two-column layout it defaults to ‘20%’.

column2_width string Optional

Optional. CSS width of the second column in a two-column layout. Default is ‘auto’.

button_text object Optional

Optional. Custom labels for the form buttons. Only include the ones you want to change; the rest keep their existing/default labels. A label set to an empty string uses the default label. Which buttons appear is set by show_save_and_go_back_button, show_save_button, show_close_button and show_save_and_continue_button, not by the labels.

previous_page string Optional

Label of the Save and Go Back button, which saves and goes back to the previous page. It only appears when show_save_and_go_back_button is true. Default is “Save and Go Back”.

next_page string Optional

Label of the Save and Continue button, which saves and goes on to the next page. It only appears when show_save_and_continue_button is true. Default is “Save and Continue”.

save string Optional

Label of the Save button, which saves without changing page or closing. It only appears when show_save_button is true, and the user can save. Default is “Save”.

close string Optional

Label of the Close button, which closes the screen without saving. It only appears when show_close_button is true. Default is “Close”.

save_and_close string Optional

The label of the Save and Go Back button on the first page, where clicking it saves and closes the form. When show_navigation_tabs is true, this text is also used for a special leftmost tab which the user can click to save and close the form. Default is “Save and Close”.

save_and_finish string Optional

The label of the Save and Continue button on the last page. Used to save and finish (which will either close the screen, or take the user to the Thanks page if show_thanks_page is true). Default is “Save and Finish”.

printable_view string Optional

Button to open the printable version of the form. Set to an empty string to hide it. Default is “Printable Version”.

thankyou_link string Optional

Text of the link on the Thanks page that leaves the form. Default is “Continue”.

show_thanks_page boolean Optional

Optional. When false (default), finishing the form is treated as done and no Thanks page is shown. When true, a Thanks page is shown after the user finishes, and the Save and Continue button is turned on. A screen with thanks_text always shows the Thanks page, so this cannot be set to false while it has thanks_text; set thanks_text to an empty string first.

thanks_text string Optional

Optional. What the Thanks page shows after the user finishes the form. HTML, where {thankYouNav} stands for the link that leaves the form; or PHP code, starting with <?php, which prints what should appear and can use $entry_id and $thankYouNav. Setting it turns on the Thanks page (show_thanks_page) and the Save and Continue button. An empty string removes it, and the Thanks page then shows “Thank you!” and the link.

intro_text string Optional

Optional. What appears above the questions on the first page of the form. HTML, or PHP code starting with <?php, which prints what should appear and can use $entry_id. An empty string removes it.

← Back to the MCP reference