> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/automations/global-actions-and-action-groups/best-practices/how-to-use-list-related-list-checkboxes-values-in-action.md).

# How to use list/related list checkboxes values in Action

Below is example of using form list checkboxes for Global Action setup.

Form in the example is using Account as a source object.

1. Open your form.

2. Add a list component to your form.

3. Choose 'Contact' as a **source object**.

4. Provide a title and unique list name, and add columns.<br>

   ![](/files/37195459ff5436669567540fe7641c0d0ad282f4)

5. Save the form.

6. Create an action. See details in [How to create Action](/automations/global-actions-and-action-groups/basics/working-with-actions.md#how-to-create-an-action) article.

7. Choose 'Account' as a **context object** type for your action.

8. Choose 'Field Update' **action type**.

9. Choose the 'Contact' **object**.

10. Click the 'Add Field' button, choose the 'Level' field, and set it to 'Primary'.

11. Add and define the **condition**. Click the 'Add Condition' button and define a condition so that only contacts selected by the user will be updated to Primary. Use the `{$Environment}` object to get the list checkboxes data: `{$Environment.vf_contact_list}`.<br>

    ![](/files/ff4fb042441ac5135729d079a43cc3fad59ec39b)

12. Save your changes.

13. Add a new custom button to your form.

14. Tie the button to the action. See [Actions](/forms/form-building/form-action.md) for details.

15. Save the form.

**Now let's check:**

1. Run the form. Add the Account id to the form URL.
2. Choose several contacts in the list and click the button. As a result of Action execution, those contacts' level will be updated to 'Primary'.
