CommunityHire an ExpertSign Up
ActionsAdd Record
Actions

Add Record

Letting users add new records to your data.

Overview

Adding the Button

This action button is available under Topbar Buttons. It lets users add new records to your data source, such as a Softr Database table. Add record buttons are available on List blocks. To add one, select the List block, open the Actions tab, click + Add Topbar Button, and choose Add Record from the dropdown.

The Actions tab of a List block with the Add topbar button option highlighted

Adding Form Fields

Users need fields to fill in when they add a record. Once you add the button, you can:

  1. Give the button a label.

  2. Add the fields that users fill in for the new record. Each field has a label, a placeholder, a required switch, and a Map to setting that links it to a field in your data source.

The Actions tab of a List block with an Add record button and its fields

About the Modal

The modal is the form that users see when they add a record. You can set the title of the Add Record modal and the text of its Add and Cancel buttons. To see the live form, preview the app or use it live. You can also preview the modal with the eye icon in the upper right of the section. To change the look of the modal (background, text color, button color), use the Theme menu tab.

The settings of the Add record modal: title and button texts

Setting the On Form Submission

Here you set the success message that users see after they submit the form, and the action that runs next. You can choose:

  • Open new record’s details page: Sends the user to a details page for the new record. If you have no details page for this type of record, Softr asks you to create one.

  • Close the modal: Closes the popup and returns the user to the screen they came from.

  • Open a page: Sends the user to a page in your app.

  • Open an external URL: Sends the user to a URL you set.

The On form submission settings: success message and next action

Button Visibility

After you create the button, click the yellow branching icon to set visibility conditions based on the logged-in user’s user group.

The branching icon that opens the button visibility settings

Example

Let’s set up this action. We use a List block connected to a Tasks table in a Softr Database. The list shows the tasks of a product development team. Each task has a Task name, a Status (the progress of the task), and a Priority. The table can have more fields. We want an “Add new task” button so team members can add tasks to the list.

List of tasks

List of tasks

First, we set the button label.

Button label

Button label

Then we customize the other texts of the button. The following gif also shows how to preview the Add record pop-up, where users enter the details of a new record.

Setting up button texts and previewing the modal

Setting up button texts and previewing the modal

Next, we choose which fields of the data source users fill in. Click Add field in the button settings and add each field. A new task needs a Task name, a Status, and a Priority. We add a Text field and map it to the Task field of the table. We add two dropdown fields and map them to Status and Priority, because both are select fields in the table.

Adding fields for the add new task functionality

Adding fields for the add new task functionality

Now we define who can see and use the button (see button visibility).

The users of our task list are the team members who work on those tasks. Their emails are in the Assignee email field of the Tasks table, next to each task.

The Tasks table of a Softr Database with the fields Task, Details, Status, Priority and Assignee email

The Tasks table in a Softr Database: each task has a status and an assignee email.

We also create a user group for project managers only.

Creating a user group for project managers.

Creating a user group for project managers.

Next, we set the button visibility so that only the Project Managers user group can see the button.

Setting button visibility

Setting button visibility

Now let’s test the setup from the user’s side.

Testing adding new tasks

To test the setup, we sign in to the app as a project manager and add a new task to the list. The following gif shows it.

Adding a new task

Adding a new task

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.