---
title: "Form Blocks (Classic apps)"
description: "Classic apps (built from blocks): Conditional Forms, Advanced Form Features, Use Case: Job Submission with Hidden Fields, Tutorial: Sending Form Data to a Data Source."
canonical: "https://docs.softr.io/classic/form-blocks"
updated: "2026-12-04"
---

# Form Blocks (Classic apps)

> **Note**
>
> This page covers **Classic apps**, built from blocks. See [Classic apps](/classic/overview).

## Conditional Forms

Conditional Forms include all the features of Basic Forms but are enhanced with advanced functionalities like Step Logic, Section Logic and Dropdown option filtering (based on logic). These features enable the forms to adapt in real time to the attributes or input of your form users, creating a tailored form-filling experience.

### **Building a Conditional Form**

Setting up a Conditional Form involves the same initial steps as setting up a Basic Form. Here’s a quick recap:

> **Tip**
>
> **Build with AI:** You can skip the manual setup and instantly generate a conditional form with the **AI Co-Builder**. Open the AI chat and try: _"Create a multi-step job application form that asks for additional portfolio links only if they select 'Designer' as their role."_

1. **Add a form block preset**: From your Softr app, add a new form block to your page.

2. **Select a destination**: A destination can be a data source, email or a tool like Zapier or Make. You can also send a predefined JSON body directly to a webhook.

3. **Add questions**: Add and map the required fields into your form such as Name, Email, Message, etc.

#### **Step logic**

Step logic allows you to guide users through specific steps of a form based on their inputs or predefined user attributes. Here’s how to implement it:

1. **Add steps**: Break your form into multiple steps or pages.

2. **Set conditions for paths after a step**: Specify conditions under which a user should be directed to a particular step. For example, if a user selects "Yes" to needing additional services, you can set the form to navigate to a step that gathers more detailed information about their requirements.

3. **Test step logic using preview mode**: Ensure that each pathway functions as intended by testing each conditional route to catch any errors or logical inconsistencies.

#### **Section logic**

Section logic enhances the adaptability of forms within individual steps:

1. **Add sections**: Divide your form into sections within a single step, grouping related fields together.

2. **Apply conditions to sections**: Configure each section to show or hide based on user responses or attributes. For example, a section asking for payment information can be hidden unless the user selects a paid service.

3. **Dynamic sections**: You can make sections dynamically appear as more information is required or certain conditions are met, improving form engagement and preventing information overload.

#### Dropdown options filtering

Dropdown options filtering allows you to conditionally display specific values in a dropdown field based on certain criteria. This is particularly useful when you want to guide users to select only relevant options.

**Linked record option filtering**

Imagine you have an event registration form connected to your "Registrations" table, which in turn is linked to an "Events" table. Each event in your data source might have a status of either 'Upcoming' or 'Past'. To prevent users from registering for 'Past' events, you can filter the dropdown to only show 'Upcoming' events. Here’s how to set it up:

1. Add the dropdown field: Insert a dropdown field in your form and map it to the 'Event' field, which is a linked field from the "Registrations" table.

2. Access the option filter: Click on the logic icon next to the “Options” label. This will open the option filter panel.

3. Apply the conditional filter: Toggle on the "Filter options by condition" setting and add a condition. For this example, you’ll filter by `Status is Upcoming`.

With this setup, the dropdown will only display 'Upcoming' events for users to select, ensuring that they can’t mistakenly register for past events.

This example demonstrates how to filter linked record options.

**Option value filtering**

You can also apply filters based on the option values themselves, providing flexibility for different scenarios. For instance, imagine you have an email field in your data source that’s mapped to a dropdown field. If you only want to display email addresses that belong to a specific domain, such as '@softr.io', you can filter the dropdown options to show only those emails. This ensures that users are restricted to selecting emails that match the specified criteria.

#### Ending Logic

You can control what happens when a user submits the form based on conditional logic. There are two parts to setting conditional endings: the ending itself and how users arrive there. One ending is always provided for you by default and you must have at least 1 ending on every form.

To access the Endings, select the form block and click on the **Questions** tab.

**The Form Ending**

1. **On Submit** - You can choose to either show a success message or a thank you screen. For the success message you can customize what it says. For the thank you screen you can customize what the thank you popup modal says.

2. **Success Message/Thank You Screen** - This section will change based on your choice, allowing you to change the success message or thank you screen respectively.

3. **Action** - Here you can choose what should happen when the user submits the form. Choose from the following options:\

   1. Refresh form - This will start the form from the beginning and let the user start a new submission
   2. Open details page - This will open a details page for the newly created record. If one doesn’t exist, you can create one.
   3. Open page - This will open a page in your app that you specify.
   4. Open external URL - This will send the user to a link or URL that you specify.

4. **+ Add ending** - This will add another ending to your form that you can use conditional logic to direct form submissions to.

![Notion image](/building-blocks/conditional-forms/image1.webp)

**Adjusting the Logic**
Much like adding steps to the conditional form, you can select steps and use paths to send users to different endings.

1. Click on the Logic tab to open up the form Logic Builder.

2. Select the Step you want to route to an ending.

3. Apply any logic that should make this path function and choose the Ending you want.

![Notion image](/building-blocks/conditional-forms/image2.webp)

## Advanced Form Features

### Destination

In this section, you customize the form and set where it's going to be sent. To start configuring the form fields, you first need to set the form's **Destination**.

![Form destination](/building-blocks/advanced-form-features/image1.webp)

_Form destination_

Here, you have the following options:

- [Send to data source](/classic/form-blocks#tutorial-sending-form-data-to-a-data-source)
- Add to [Mailchimp](/classic/forms-and-payments)
- Add to [Mailerlite](/classic/forms-and-payments)
- Send to [Zapier](/integrations/zapier-make-n8n)
- Send to [Make](/integrations/zapier-make-n8n)
- Forward to your email

You can learn more about each option under its respective article (links added above). And you also have the **Forward to your email** option, which simply sends the submission to the specified email address. So, let's select the **Forward to your email** option and go over the field types and their settings.

### **On Form Submit**

After the form is submitted, you can either display a success message or take the user to a different page.

#### **Success Message**

![Configuring the success message](/building-blocks/advanced-form-features/image2.webp)

_Configuring the success message_

You can customize the message as well as configure styling and formatting.

#### **Open Page**

![“Open Page” option](/building-blocks/advanced-form-features/image3.webp)

_“Open Page” option_

Just select the page, and the user will be taken there after successful submission.

### Field settings

![Field settings](/building-blocks/advanced-form-features/image4.webp)

_Field settings_

All the field types (apart from **Hidden Fields**, which we'll consider separately), have the following common settings:

- **Label** – a label for the field (appears above or next to the field depending on the form layout)
- **Placeholder** – placeholder text for the field
- **Field** – a unique identifier (i.e. name) for the field
- **Required** - is the user required to fill in the field or not

Now, let's see what field types are available:

- **Email** – a field where users can enter their email address
- **Text/Long text** – for single/multiple line texts
- **URL** – for submitting a URL
- **Phone number** – here users can provide their phone numbers. Please, note that validation is applied on entered phone numbers
- **File** – a field where users can upload files
- **Date** – a date field where users can choose a date from a calendar pop-up
- **DateTime** – allows providing date and time within a single field. Can be mapped to any text type field in Airtable (e.g. Single Line Text)

  ![DateTime field](/building-blocks/advanced-form-features/image5.webp)

  _DateTime field_
- **Checkbox** - a checkbox field with a yes/no value. If you are mapping the field to Airtable, you need to use a "Checkbox" field type there as well.
- **Rating** - allows submitting a rating (1-5 stars). If you are mapping the field to Airtable, you need to use a "Rating" field type there as well.
- **Address** - this is a regular text field, where users can enter their address, but it also has **address autocomplete**. However, to enable autocomplete, you first need to integrate Google Maps in **Settings => Integrations => Google Maps**. Follow the instructions [here](https://developers.google.com/maps/documentation/javascript/get-api-key), to get the map API key
- **Hidden** - described below separately
- **Number**
- **Dropdown** – a dropdown where users can select one of the provided options. Here, you also have the **Options** parameter, where you can list all the options separated by a semicolon (**without spacing**).

  ![Dropdown field type](/building-blocks/advanced-form-features/image6.webp)

  _Dropdown field type_

If you’ve mapped the dropdown field to a **single- or multi-select field** in Airtable, a **Sync options with data source** will appear, which lets you sync all the values from Airtable automatically instead of adding them manually.

![“Sync options with data source” toggle](/building-blocks/advanced-form-features/image7.webp)

_“Sync options with data source” toggle_

- **Multiselect Dropdown** – similar to **Dropdown** but with the possibility to select more than one option

For dropdowns, you can also toggle to enable users to add additional options if the one they are selecting does not exist yet. This is great for adding additional selection options. Note that this is not yet possible for linked records in a dropdown.

![Notion image](/building-blocks/advanced-form-features/image8.webp)

#### **Signature field**

> **Note**
>
> **eSignature capture** is available for the users on the [Professional plan and above](https://www.softr.io/pricing).

This form field allows users to either type or write their signature (using finger on a touch device or mouse on desktop). The signature is then saved as an image in your data source (e.g. in a File field in Softr Databases, an Attachment field in Airtable, or as an image URL in Google Sheets).

![Signature field selection and draw or type option modals](/building-blocks/advanced-form-features/image9.webp)

_Signature field selection and draw or type option modals_

> **Info**
>
> Images on the records can serve as a reference for anyone entitled to access that record. It is important to ensure that your record-keeping practices meet any specific legal requirements for your industry and jurisdiction. [Read more](https://www.pandadoc.com/electronic-signature-law/) about electronic signature laws across countries.

#### Hidden field

![Hidden field settings](/building-blocks/advanced-form-features/image10.webp)

_Hidden field settings_

This field type allows sending hidden data that the user doesn't see (you can find a use case [here](https://developers.google.com/maps/documentation/javascript/get-api-key)). There are **4 categories**, so let's examine them one by one.

**1. Logged-in user**

By default, here, you have the following options:

- **Email.** Collects the email address of the logged-in user.
- **Name.** Collects the name of the logged-in user.
- **Record ID.** If you've [connected a data source to your users database](/apps/sync-users), you can choose this option to collect the Record ID (you can learn about [Airtable](/integrations/airtable) Record IDs [here](https://developers.google.com/maps/documentation/javascript/get-api-key), and learn how those work for Google Sheets [here](https://developers.google.com/maps/documentation/javascript/get-api-key)) of the user.

**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](/integrations/airtable) Record IDs [here](https://developers.google.com/maps/documentation/javascript/get-api-key), and learn how those work for Google Sheets [here](https://developers.google.com/maps/documentation/javascript/get-api-key)) in its page URL, indicating the [data source](/integrations/data-sources) record corresponding to that particular job. So, if you have a form on that page to receive job applications, you can set a hidden field to collect the **recordId** to identify which job announcement the application 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).

**3. Page URL**

This parameter allows you to get **the full URL of the page** the form has been submitted from.

**4. Custom value**

Here’ you can collect any custom value that you’re not able to collect using the previous options. For instance, you can use it to collect a custom text along with the submission. This can be useful if you have the same form on different pages, and want to mark each of the forms distinctively.

Another important use case is collecting additional logged-in user parameters. If you've [synced your users database with a data source](/apps/sync-users), you can use this option to collect any of the field values corresponding to the user. Here, the value has the following format:**\{LOGGED\_IN\_USER:FIELD:'field name'}** ('field name'is replaced with the actual name of the field).

Let's say you have connected an [Airtable](/integrations/airtable) data source and have a **Status** field in your users base as shown below.

![Users Base on Airtable](/building-blocks/advanced-form-features/image11.webp)

_Users Base on Airtable_

So, if you set your hidden field's value as **Status,** the values of the **Status** field will be collected for each user submitting the form (e.g. for Elise it will be "Active").

### Form Prefill

Using this feature, you can send your Softr form to others with one or more fields prefilled with values. Let's see how that works.

Let's say your form URL is **yourdomain.com/form**. To prefill a certain field for this form, you need to add a parameter to your form URL and assign a value to it in the following format:

> **?prefill\_tagname=value**

> **Tip**
>
> If it's the first parameter in your URL (e.g. you could already have other parameters not related to the prefill), it needs to start with "?." However, if you already have other parameters in the form URL, attach the new ones using "&" at the beginning: **\&prefill\_tagname=value**

For instance, if you have a text field with a **Tag** "NAME," and you want to prefill it with "John," your URL will look as follows:

> **yourdomain.com/form?prefill\_NAME=John**

![Text field settings](/building-blocks/advanced-form-features/image12.webp)

_Text field settings_

> **Tip**
>
> Please, note that the **Tag** value is case-sensitive and should match exactly the value in your field settings.

Below, you can see what we described in action.

![Prefilling the name field](/building-blocks/advanced-form-features/image13.webp)

_Prefilling the name field_

If the field type receives a single value and doesn't have any special formatting involved, it can be prefilled in a similar way. **Hidden fields** work the same way as well.

> **Tip**
>
> Please, note that the **File** field type is not supported.

Further on, if you need to prefill **multiple fields**, just add the new values next to each other as shown below:

> **?prefill\_NAME=John\&prefill\_Email=<john@softr.io>**

Now, let's see how prefill works for the field types that receive their values differently.

#### **Multi-select Dropdown**

Here, list all the preselected values in a **single** parameter, separated by semicolons with no spaces:

> **prefill\_Option=X;Y**

![A Softr form field labelled Skills showing two selected chips, Design and Research, both applied from the page URL](/building-blocks/advanced-form-features/prefill-multiselect.webp)

_A multi-select field prefilled with two values from the URL._

> **Warning**
>
> The semicolon is the only separator that works. A comma (**prefill\_Option=X,Y**) matches no option and leaves the field empty, and repeating the parameter (**prefill\_Option=X\&prefill\_Option=Y**) applies only the last value. A space after the semicolon (**X; Y**) silently drops everything after it.

> **Note**
>
> Prefilling more than one value also needs the form field itself to accept more than one. In the block’s **Steps** tab, open the field, expand **Selection**, and switch on **Allow multi-select**. Otherwise only the first value in the list is applied.

#### **Date and DateTime**

You can use a date like `?prefill_date=2024.10.25`. But it’s not limited to this format; since we’re using [JavaScript’s Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object, you have a broad range of formats to choose from, like `2024/10/25` or even `October 25, 2024`. You can also pre-fill with date and time, like `prefill_date=2024.10.25 15:30`. If the pre-filled date or datetime is invalid, nothing will be displayed. Some examples:

> **?prefill\_datefield=dd/mm/yyyy**\
> &#x20;**?prefill\_datetimefield=mm-dd-yy HH:MM**

> **Tip**
>
> Since the time picker has fixed values available for selection (e.g. 01:30 or 16:00), you should use the same values when setting the prefill for the DateTime field.

#### **Checkbox**

For the checkbox type, you can set the value as "true" (use lowercase only) if you want it to be pre-checked:

> **?prefill\_checkbox=true**

That's it. Now, you should be able to send your form URL to your users with any of the fields prefilled with your preferred values.

> **Tip**
>
> Email marketing services (e.g. [Mailchimp](/classic/forms-and-payments)) often provide variables that you can use as values in your prefill configuration to be able to send the form URL to a group of users at once so that each user has his/her own info (e.g. Name, Email, etc.) prefilled.

### **Enable reCaptcha**

By adding reCaptcha authentication to your form, you'll protect it from getting spammed or misused.

> **Tip**
>
> Please, note that Softr only supports [reCaptcha v3](https://developers.google.com/recaptcha/docs/versions).

> **Note**
>
> For reCaptcha to be enabled the app needs to be published.

To set up reCaptcha, you need to go to <https://www.google.com/recaptcha/admin/create> and enter your site details as shown below.

![reCaptcha setup](/building-blocks/advanced-form-features/image14.webp)

_reCaptcha setup_

In the next screen, you just need to copy the **Site Key** and **Secret Key.**

![Getting Site Key and Secret Key](/building-blocks/advanced-form-features/image15.webp)

_Getting Site Key and Secret Key_

To finalize the setup, paste the Site Key and Secret Key in your Softr app's **Settings => Integrations => Google reCaptcha.**

![Adding reCaptcha keys](/building-blocks/advanced-form-features/image16.webp)

_Adding reCaptcha keys_

### **Using Forms on Details Pages**

Conditional forms can be particularly powerful when used on details pages, where the form's behavior can depend on specific data from a list details record. To ensure that these forms operate correctly, special attention must be given to how data fields are mapped and utilized within the form.

#### **Setting up Forms on Details Pages**

When adding a conditional form to a details page in Softr, the form can interact dynamically with the data displayed on that page. This setup allows you to create forms that respond and adapt based on the specific details of the record being viewed.

#### **Field mapping and conditions**

To utilize record-specific data in your conditional logic:

1. **Data mapping**: Ensure that any field used in the form’s conditions corresponds to a mapped field in the list details block. This mapping is crucial because it allows the form to access the relevant data to evaluate conditions correctly.
2. **Configure conditions**: When setting up conditions in your form that depend on list details, refer directly to the mapped fields. For example, if you have a form on a real estate listing page that should display additional questions about mortgage options only if the property price is above a certain value, you must map the property price field from the list details to the form.
3. **Validate field mapping**: Verify that the fields used in your conditions are not only mapped but also correctly pulling data from the list details. If the field isn’t mapped, the conditional logic based on that field will not function, potentially causing the form to behave unexpectedly.

#### **Testing and troubleshooting**

- **Testing**: Thoroughly test the form by navigating through different records on the details page to ensure that the conditional logic triggers as expected for different data scenarios.
- **Troubleshooting**: If a condition doesn’t work, double-check the field mappings and the logical statements used in your conditions. Ensure there are no discrepancies between the field names in the database and those referenced in your form settings.

## Use Case: Job Submission with Hidden Fields

Here, we'll go through a use case when incorporating hidden fields into your form can be useful.

Let's say you have a job board (built using a [List](/classic/list-and-grid-blocks) block in our case), which is in turn connected to a [List details page](/classic/item-details-block) for displaying the complete overview of the position. Apart from job details, the details page also contains a form through which visitors can apply for that job. The blocks display data from a [data source](/integrations/data-sources), which in this case is [Airtable](/integrations/airtable). Below you can see what these pages and their corresponding Airtable tables look like.

![Job board and job details](/building-blocks/use-case-job-submission-with-hidden-fields/image1.webp)

_Job board and job details_

This way, each form submission will be stored under the **Job Submissions** table. However, since we don't have a field where the user can select which position he/she is applying for, we can't associate the submissions with their related jobs. But instead of adding such a field, we can go one step further and link each form submission to its related job entry in the **Jobs** table. This is where hidden fields come in handy.

First of all, let's link the two tables through a linked record.

![Linking "Jobs" and "Job Submissions" tables](/building-blocks/use-case-job-submission-with-hidden-fields/image2.webp)

_Linking 'Jobs' and 'Job Submissions' tables_

Now, on our form, we'll add a URL parameter hidden field that gets the **recordID** of the page it has been submitted from and map that field to the **Jobs** linked record field we just created. As a result, Airtable will locate the corresponding job record from the **Jobs** table and link it to each new job submission.

Now, on our form, we’ll add a Hidden field input that is Mapped to our new Jobs field in the Job Submissions table. Since we are linking to the list details page from our list of jobs, we can choose information from the Current Record to be saved as the value of our hidden field. We can use the primary field (first column) from the Jobs table as the value to send in the Hidden field. In this case it’s the Name of the job.

![Notion image](/building-blocks/use-case-job-submission-with-hidden-fields/image3.mp4)

That's it. As you can see, the job submission is successfully linked to its related job record. Whenever a user submits an application on a job’s detail page, the form will automatically link to the job the user is applying for.

## Tutorial: Sending Form Data to a Data Source

Here, we will go through the process of creating a form within a Softr app and linking it to a [data source](/integrations/data-sources) (we’ll use [Airtable](/integrations/airtable)) to collect form submissions there. We will create a job posting form, where users will be able to submit job announcements along with all the necessary fields such as description, location, type, and others.

### Creating the form

To add a form, we need to add a new block, selecting the Customizable Form or the Customizable Form with Labels.

![Selecting the Form](/building-blocks/tutorial-sending-form-data-to-a-data-source/image1.webp)

_Selecting the Form_

### Selecting a destination

First, we need to choose where the form is going to be submitted to. The **Destination** is located under the **Features** tab of block’s settings. We’re going to choose the **Send to a data source** option and select Airtable. Afterwards, we also need to select the **Base** and **Table** that needs to be linked to our form.

![Configuring the form destination](/building-blocks/tutorial-sending-form-data-to-a-data-source/image2.webp)

_Configuring the form destination_

> **Tip**
>
> To be able to select a data source you need to connect it from **Settings ⇒ Data Sources**. You can find more info on that in our step-by-step guides for [Airtable](/integrations/airtable) and [Google Sheets](/integrations/google-sheets).

Now, let’s see how we can customize the form to start getting job announcements.

### **Customizing the Form**

Let’s customize the form to include all the fields necessary for our job postings. In our example, those include such fields as **Company Name**, **Logo**, **Job Description**, and so on.

For each field you need to select a relevant **Type**. For fields that require the user to type in the value, you can choose **Single line text** or **Long Text** (suitable for the **Job Description** field in our example). For the fields that require uploading a file (e.g. **Logo**), we will select the **File** type, and for the fields that are going to have a predefined list of options to choose from, we are going to set the type as **Dropdown**. For **Dropdown** fields we are going to add all the available options inside **Options** separated by a semicolon. In the screenshot below you can see the job category field with its options.

![Dropdown field setup](/building-blocks/tutorial-sending-form-data-to-a-data-source/image3.webp)

_Dropdown field setup_

Apart from the field type, we can also add a **Label** and **Placeholder** text. Further on, we need to pay particular attention to the **Map to** field, which indicates the data source field that the given field should be linked to.

Below, you can see how we’ve linked the Category field to its corresponding field on Airtable.

![Mapping the Category field](/building-blocks/tutorial-sending-form-data-to-a-data-source/image4.webp)

_Mapping the Category field_

To be able to map all the fields, we need to have them ready along with their relevant types (there are no field types in Google Sheets, so you can find out how to handle such cases [here](/integrations/google-sheets)), which we’ll look into next.

### Preparing the Airtable database

In our Airtable base, the fields (base columns) need to correspond to the form fields in the Softr app. The column name needs to be the same as the field’s tag within the form, and their types need to match as well. In Airtable, we have similar field types:

- **Single line text**

- **Long text**

- **Attachment** (corresponds to **File** in the form)

- **Single select/Multiple select** (correspond to **Dropdown** in the form)

In the following screenshot, you can see the “Category” field along with its field type and available options.

![Category field on Airtable](/building-blocks/tutorial-sending-form-data-to-a-data-source/image5.webp)

_Category field on Airtable_

Thus, as soon as we have our Airtable base ready, we can proceed with linking it to our form by selecting the **Base** and **Table** as described above.

### **Publishing the Form and Testing**

That’s it. Our form is ready, and all we need to do is to publish it and do a test submission. If the test is successful, a new row with the form submission should be added in the connected Airtable base. Below, you can see the test data filled in inside the form and how it looks after being submitted to Airtable.

![Test data filled in the form](/building-blocks/tutorial-sending-form-data-to-a-data-source/image6.webp)

_Test data filled in the form_

![Submission added in the Airtable base](/building-blocks/tutorial-sending-form-data-to-a-data-source/image7.webp)

_Submission added in the Airtable base_
