If you need to create a hidden field for whatever reason, look no further! This article will explain some of the best practices for creating a hidden field that is never accessed or seen by your customers.

Create a data column outside of the form builder

To create a field that will never be shown to customers on a form and is only editable in the app admin, you should create a data column outside of the form builder. By design, the form builder will create a new data column when you add a field, but for truly "hidden" fields it's best to go straight to the Data columns page in the app.

  • On the data columns page, click the button for 'Add data column'.

  • Type in a human-friendly label, define a data column key, and select the data type (i.e. text, integer, etc.).

  • You may also want to favorite this data column so that it's immediately visible on the Overview card when you're viewing customers' details in the app admin.

See the screenshot below for an example:

Once this has been done, you'll be able to edit the data column value for each customer record in the app admin, and the customer will never see this data on the storefront or on their account details (unless you decide to display this data in Liquid using metafields).

You can click the "Edit" button on the Overview card in the customer record to add a value to this data column. See the screenshot below for an example:

Use form rules to hide a field in the form

If you'd rather have the data column on the form itself, then you can create a form rule to hide the field under the conditions that you define. If you never want customers to see the field, you can simply skip adding a condition and just set up the action to hide the field in question. See this screenshot below for an example:

The rule shown above will hide the field for "Private note" under all conditions, and customers will never see it or be able to submit data to it.

Use form rules to conditionally hide a field

Alternatively, you can also use form rules to show and hide a field based on certain conditions. For example, let's say the "Private note" field should only be shown if the customer selects "Wholesale" from a radio field on the form. See the screenshot below for an example of how this would be configured:

Notice that the rule says if the conditions are not met, this field will be automatically hidden. This means that the field will only show if the customer selects "Wholesale" for the "Account type" field. The "Private note" field will otherwise be hidden at all times until the defined condition has been met.

Questions, comments, or concerns?

Feel free to reach out to our support team via email or chat and we'll be happy to assist!

Did this answer your question?