When setting up an Action Button such as an Add Record or Update Record, you need to specify which fields in your data source the button can manipulate. Thus, you need add all those field types and link them to corresponding fields in your data source.

You can add a new field using the Add field button in action button settings.

<aside> ❗ Note that computed fields will not appear in the list of mappable fields for the form.

</aside>

Add field button

Add field button

Next, you need to select the field type and map it to the corresponding field in your data source.

You can also add a Label and Placeholder.

Mapping the field

Mapping the field

There is also a Required toggle, which, if enabled, makes it obligatory for the user to fill in the value for the given field when adding a new record or updating it.

Hidden Fields

Hidden field under Add Record action

Hidden field under Add Record action

Hidden fields let you collect data that’s not explicitly entered by the user (e.g. user profile data or a parameter from the page URL). Hidden fields are available on various actions such as Add Record or Update record.

The mapping for hidden fields works similar to other regular fields, so you simply need to select the field in your data source that’s going to receive the value. Now, let’s discuss the types of values you can collect through hidden fields. There are 4 categories, so let's examine them one by one.

1. Logged-in user

By default, here, you have the following options:

2. URL Parameter

Using this option, you can collect any of the page’s URL parameters. Let's consider a specific example to see how that works. For instance, if you've created a job board with Softr, each job announcement will have a recordId (you can learn about Airtable Record IDs here, and learn how those work for Google Sheets here) in its page URL, indicating the data source record corresponding to that particular job. So, if you have an action button on the job announcement page, you can set a hidden field to collect the recordId to identify which job announcement the action has been submitted for.

Your page URL will look something like yoursite.com/job-details/senior-product-manager?recordId=rec7HcXAgKmlk8inf, so if you set your hidden field value as “recordId,” it will collect the value of recordId ("rec7HcXAgKmlk8inf" in this case).