Use forms to streamline user data entry (Beta)
This documentation describes one or more public beta features that are in development. Beta features are subject to quick, iterative changes; therefore the current user experience in the Sigma service can differ from the information provided in this page.
This page should not be considered official published documentation until Sigma removes this notice and the beta flag on the corresponding feature(s) in the Sigma service. For the full beta feature disclaimer, see Beta features.
Use forms to create an interface for user data entry. Forms allow you to collect users' inputs and incorporate them into action workflows, such as adding rows to input tables, setting control values, and calling stored procedures. Forms can be created manually or from an existing data source.
Forms are a layout element, allowing you to guide users and create focused interfaces as you build AI apps in Sigma.
Use forms when you want to:
- Create a survey or poll
- Create an interface for user data entry in an AI app
- Update multiple controls or input tables from one set of user inputs
Prerequisites
- You must be the owner or have Can edit or Can explore permissions on the workbook.
- You must be in Edit or Explore mode for the workbook. See workbook modes overview.
Add a form to a workbook
Forms in Sigma are customizable interfaces for data entry that can submit data to multiple data sources and elements, such as input tables, controls, and actions. Though you can create a form from an existing data source for convenience, the form can be customized to send data to other elements as well, or created from scratch to send data to any applicable element in the workbook.
You can create a form from scratch, or from an existing data source.
- In the Add element bar, select Layout, and then select Form.
- In the Create new form modal, select the method you want to use to create the form.
- Select Start building to create a form from scratch.
- Select Select source to create a form from an existing data source.
You can also create a form as the child element of an input table to automatically configure the form fields and actions to insert a row into the input table. For more information, see Create a form as a child element of an input table.
Create a form from scratch
After selecting Start building in step 2 of Add a form to a workbook, a new form element appears on the canvas with no form fields configured. Creating a form from scratch allows you to fully customize form fields and their destinations based on your use case.
To manually add form fields:
- Select the form element.
- In the editor panel, select Properties.
- In the Form fields section, click
Add new field.
- In the New field popover, select a field type.
Field types limit the data type of user input. For example, a Short text field only accepts text data, and a Number field only accepts number data. For more information on data types, see Data types and formats.
The field is added to the form element.
To manually configure the destination of a form field:
- Select the form element.
- In the editor panel, select Actions.
- In the action sequence with an On submit trigger, click
Add action.
- Configure an action to set the destination of the form field. For example, you can configure an Insert row action to add a row to an input table based on the current form field values. For more information, see Configure form actions.
Create a form from an existing data source
After selecting Select source in step 2 of Add a form to a workbook, the Select form fields from source modal opens. Creating a form this way allows you to quickly configure fields and actions based on the columns in an existing data source. You can customize the form fields and actions as needed after the form is created.
- In the Select form fields from source modal, select a Source type and Source to use for the form's fields.
You can create a form from an input table or stored procedure.
- Select the fields to include in the form. For each column in an input table, or for each argument in a stored procedure, you can set a form field name, and select a form field type from a list of compatible options for the column or argument's data type.
- Click Create form.
The form element is added to the canvas with the selected fields. By default, the form includes an action sequence with an On submit trigger that submits the data to the selected data source and then clears the form fields.
Create a form as a child element of an input table
To create a form as the child element of an input table:
- Navigate to the element you want to use as the data source for the form.
- Select
Create child element > Form.
The form element is added to the canvas with a form field for each column in the input table, as well as an action sequence with an On submit trigger that inserts a row into the input table and then clears the form fields. The form fields are configured with the same name and data type as the corresponding column in the input table.
Import form fields from a data source
You can add fields to an existing form by importing them from a data source:
- Select the form element.
- In the editor panel, select Properties.
- In the Form fields section, click Add new field
.
- Select Import fields from....
- In the Select form fields from source modal, select a Source type and Source to import fields from.
- Select the fields to import.
- Click Add new form fields.
The selected fields are added to the form element, along with an action sequence with an On submit trigger that submits the form data to the data source and then clears the form fields.
Create an input table from a form
If a form has no input table targeted by an action sequence, you can create an input table from the form to collect form submissions:
- Select the form element.
- In the editor panel, select Properties.
- In the notice to create an input table, click Create.
- In the Create input table from form modal, select a connection for the input table data, and click Create.
The input table is created with a column for each form field, and an action sequence with an On submit trigger that inserts a row into the input table and then clears the form fields.
Customize a form
To customize the fields, actions, and style of a form, see the following sections:
Configure form fields
In the editor panel, select Properties. Depending on the Field type, configure the following options for each field:
Short text
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Placeholder | Enter text to appear when the field is empty. |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Validation | Configure a validation rule for the field, including a Comparison operator and Text match pattern. Turn on the Case sensitive toggle to make the validation case sensitive. |
| Field ID | Enter a unique identifier for the field. |
Long text
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Placeholder | Enter text to appear when the field is empty. |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Validation | Configure a validation rule for the field, including a Comparison operator and Text match pattern. Turn on the Case sensitive toggle to make the validation case sensitive. |
| Field ID | Enter a unique identifier for the field. |
Number
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Format | Select a format for the number, such as currency or percentage. |
| Placeholder | Enter text to appear when the field is empty. |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Validation | Enter a range of valid values for the field. |
| Field ID | Enter a unique identifier for the field. |
Date
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Placeholder | Enter text to appear when the field is empty. |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Validation | Enter a range of valid values for the field. |
| Field ID | Enter a unique identifier for the field. |
Checkbox
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Field ID | Enter a unique identifier for the field. |
File upload
| Options | Details |
|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. |
| Default value | Upload a default file for the field, or select a file using a Custom formula. |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. |
| Allow multiple files | Turn off the toggle to allow only one file to be uploaded. On by default. |
| Restrict number of files | Turn on the toggle to restrict the number of files that can be uploaded. When turned on, set a Max number. Off by default. |
| Accepted file types | Select one or more file types to accept. |
| Max size | Enter a maximum file size for the upload. Default 200 MB. |
| Field ID | Enter a unique identifier for the field. |
Radio group
| Options | Details | |
|---|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. | |
| Value source | Select a source for the list of values. Either enter a Manual list or select an column from an existing Data source. | |
| Manual list | Value type | Select the data type for the values in the list. For Number and Date, you can also select a Format. |
| Values | Enter values to include in the list. Optionally, enter a display value to show in the list instead of the raw data value. | |
| Set display values | Turn on the toggle to add the option to set display values for the list. Off by default. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Data source | Source column | Select a column from the data source to use as the list of values. |
| Set display column | Select a mapping column to use as the display values for the list. For example, you might select a column with product names as the display values and a column with product IDs as the source values. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. | |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. | |
| Field ID | Enter a unique identifier for the field. | |
Segmented choice
| Options | Details | |
|---|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. | |
| Value source | Select a source for the list of values. Either enter a Manual list or select an column from an existing Data source. | |
| Manual list | Value type | Select the data type for the values in the list. For Number and Date, you can also select a Format. |
| Values | Enter values to include in the list. Optionally, enter a display value to show in the list instead of the raw data value. | |
| Set display values | Turn on the toggle to add the option to set display values for the list. Off by default. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Data source | Source column | Select a column from the data source to use as the list of values. |
| Set display column | Select a mapping column to use as the display values for the list. For example, you might select a column with product names as the display values and a column with product IDs as the source values. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. | |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. | |
| Field ID | Enter a unique identifier for the field. | |
Dropdown
| Options | Details | |
|---|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. | |
| Value source | Select a source for the list of values. Either enter a Manual list or select an column from an existing Data source. | |
| Allow multiple selection | Turn off the toggle to limit the user to selecting a single value. | |
| Manual list | Value type | Select the data type for the values in the list. For Number and Date, you can also select a Format. |
| Values | Enter values to include in the list. Optionally, enter a display value to show in the list instead of the raw data value. | |
| Set display values | Turn on the toggle to add the option to set display values for the list. Off by default. | |
| Placeholder | Enter text to appear when the field is empty. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Data source | Source column | Select a column from the data source to use as the list of values. |
| Set display column | Select a mapping column to use as the display values for the list. For example, you might select a column with product names as the display values and a column with product IDs as the source values. | |
| Placeholder | Enter text to appear when the field is empty. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. | |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. | |
| Field ID | Enter a unique identifier for the field. | |
Checkbox group
| Options | Details | |
|---|---|---|
| Label | Enter a name for the field. When the form is created from a data source, the Label inherits the name of the connected column. | |
| Value source | Select a source for the list of values. Either enter a Manual list or select an column from an existing Data source. | |
| Allow multiple selection | Turn off the toggle to limit the user to selecting a single value. On by default. | |
| Manual list | Value type | Select the data type for the values in the list. For Number and Date, you can also select a Format. |
| Values | Enter values to include in the list. Optionally, enter a display value to show in the list instead of the raw data value. | |
| Set display values | Turn on the toggle to add the option to set display values for the list. Off by default. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Data source | Source column | Select a column from the data source to use as the list of values. |
| Set display column | Select a mapping column to use as the display values for the list. For example, you might select a column with product names as the display values and a column with product IDs as the source values. | |
| Default value | Enter a default value for the field from either a Static value or a Custom formula. | |
| Read-only | Turn on the toggle to disable editing while leaving the field visible. If the field has a default value, it can be submitted via an action. Off by default. | |
| Required input | Turn on the toggle to make the field required. Required fields must be populated before the user can submit. Required fields are marked with an asterisk next to the Label. Off by default. | |
| Field ID | Enter a unique identifier for the field. | |
Configure form actions
By default, forms have two action sequences, one with an On submit trigger and one with an On clear trigger.
To configure the action sequence with an On submit trigger:
- Select the form element.
- In the editor panel, select Actions.
- In the action sequence with an On submit trigger, click
Add action.
- Configure an action to define the behavior when the form is submitted.
For several action types, including Insert row, Update row(s), Set control value, and Set single row container, you can use a form field as the source for a value. For example, you can configure an Insert row action to add a row to an input table based on every form field, submitting them directly to corresponding columns in an input table.
To configure the action sequence with an On clear trigger:
- Select the form element.
- In the editor panel, select Actions.
- In the action sequence with an On clear trigger, click
Add action.
- Configure an action to define the behavior when the Clear button is clicked.
For forms created from a data source, an On submit action sequence is automatically added to insert a row into the data source, and an On clear action sequence is automatically added to clear the form fields after submission.
Style a form
In the editor panel, select Format to set the style options in each section.
In the Form style section, set the following options:
| Style | Details |
|---|---|
| Spacing | Specify the amount of space to include between fields in the form. If padding is turned on, the spacing setting also determines the amount of padding. |
| Padding | Adds padding to the form. Turn the toggle off to remove padding between fields and the edges of the form. On by default. |
| Background color | Select a background color for the form. |
| Border | Specify a border for the form. Defaults to None, and can be set to 1, 2, or 3 pixels. You can also choose a color for the border. |
| Corner | Choose a corner shape for the form. Choose between square, round, and pill. Defaults to round. |
| Field gap | Adds padding between elements in the form. Turn the toggle off to remove padding between fields. On by default. |
In the Header section, set the following options:
| Style | Details |
|---|---|
| Show title | Shows the title. On by default. Turn the toggle off to hide the title. |
| Title formatting | Enter a title and use the formatting options to set text weight, color, size, and alignment. Press = on the keyboard to include a dynamic value defined by a formula expression. |
| Show description | Shows the description. On by default. Turn the toggle off to hide the description. |
| Description formatting | Enter a description and use the formatting options to set text weight, color, and size. Press = on the keyboard to include a dynamic value defined by a formula expression. |
In the Form field style section, set the following options:
| Style | Details |
|---|---|
| Label position | Select the label position for form fields as either Top or Left. Set to Top by default. |
| Label formatting | Set a text weight and color. |
In the Buttons section, set the following option:
| Style | Details |
|---|---|
| Expand to full width | Expands the Submit and Clear form buttons to the full width of the element. Turned off by default. |
To rename buttons, select Properties in the editor panel, and select the button in the Buttons section. Enter a name in the Label field.
Updated about 2 hours ago
