Ask AI

One-click update

Letting users update records in your data.

Using the One-click Update Action

This Action Button, similar to the Edit Record button, lets your users update records (e.g. List items) in your data. The difference is that, instead of letting the user input data or choose an option, you predefine the value that needs to be applied. Thus, the user only needs to click the button to complete the update.

To set up the button, you need to specify the field (Field parameter) that needs to be modified and set the value that will replace the existing value of the field.

There are two ways to use the One-click update action. You can either Replace a Value or Clear a Value.

  • Replace existing value - This option will let you set a field value in your datasource, replacing anything already in that field. Selecting this will expose another field where you can select what to replace the value with. You can use a static value, or pick a dynamic value such as Logged in user data, current record data, or even datetime values and URL parameters.
  • Clear value - This option lets you reset a field in your datasource back to empty, 0, or null, depending on the field type.
One-click update setup
One-click update setup

The Replace existing value with settings are similar to those of the hidden field values.

Let’s consider an example to see this functionality in action.

Example: Letting a development team users reassign tasks

Let’s say we have a list of tasks for a development team, where each task has an assignee (Assignee Email field).

List of tasks
List of tasks

We are going to add a One-click update button to list items named “Reassign to me,” which will let each user reassign the task to him/her with one click.

Adding the button to items
Adding the button to items

Next, we need to add a field to the button, map it to the Assignee Email field, and select the Logged-in user’s Email as the value.

Note that computed fields will not appear in the list of mappable fields for the form.
Notion image

That’s it. Now, let’s log in with one of the development team users and test how this works.

Testing the setup
Testing the setup
Did this answer your question?
😞
😐
🤩

Last updated on May 18, 2023