Skip to main content

Using Form Actions to change field values of Data Lists

Add a button that reopens a completed task only after the user confirms, then save the new status to the data list.

Add a Reopen this task button to the task details form. A display rule shows the button for completed tasks. The form action asks the user to confirm before it changes and saves the current record.

1. Getting Started with Form Actions and Dynamic Display Rules

In a Tasks data list, use a single-select Status field. This example uses Not started, Open, On-hold, and Completed. If your list already has statuses, use the values configured there.

1.1 Adding the "Reopen this task" Button

Open the list form assigned to View Item. In the designer, add a button and set its label to Reopen this task.

1.2 Setting Dynamic Display Rules

In the button properties, open Content → Appearance → Dynamic Display Rules. Configure a Show rule with the condition Status equals Completed. Preview a completed task and a task with another status to check when the button appears.

2. Creating the "Click to Open" Form Action

2.1 Adding a Temporary Variable

In the top right of the form designer, open Temp variables. Select Add variable, enter Click confirmation, and save.

2.2 Creating the "Click to Open" Form Action

In the form designer, select Actions → New action and name the action Click to Open.

2.3 Configuring Steps for the "Click to Open" Action

Add the following steps in order. Run both the status update and the save only when the user confirms.

2.3.1 Confirm Dialog Step

Add a Confirm Dialog step. Set Confirm Question to “Reopen this task?” and select Click confirmation under Result save to variable.

2.3.2 Set Variable Step

Add a Set Variable step. Set the execution condition to Click confirmation equals true. Choose Single Value, select the Status field for the current task, and set the value that corresponds to Open.

Yeeflow Set Variable step. It sets Status to Open when Click confirmation is true.

2.3.3 Submit Form Step

Add a Submit Form step, also with the condition Click confirmation equals true. Set Submit type to Save so the changed status is written to the list.

3. Binding the Action to the Button

Select the button in the designer. In Content → Action, select Click to Open from the action list, then select Submit to save the form configuration.

4. Testing the Functionality

  1. Open a completed test task. Select Reopen this task, then Cancel. Check that its status is still Completed.

  2. Repeat and select OK. Reopen the record to check that the saved status is Open.

  3. Open a task with On-hold status and confirm that the button is hidden.

Run the checks with the type of user who will reopen real tasks.

Did this answer your question?