Skip to main content

Button-Execute type

Configure a button to run an action, open a destination, or operate on its current collection record.

In this article, we are going to discuss the execute type of button. For other settings about button please refer to: Button.


The five standard execute types are listed below. A button inside a Collection can also offer a sixth type, Collection item, for working with that item's record.


Execute an action.

Select Action from the dropdown of the Execute Type. Then, bind a pre-defined action from the Action dropdown list, or create a new action. As an example, you can create an action call "Total Amount Check" with a confirm dialog step configured to show message if the total expense's value is greater than 1,000.

Then you select this action in your action dropdown list:

Historical button Action setting: the Action label, Total Amount Check selection and complete dropdown arrow.

Historical source screenshot: the Action selector is bound to Total Amount Check. This is a local crop of the original product pixels; the capture date and product build are unknown. The amount condition and prompt text are explained above and below.

After it's set, when the user click the button on the form, this action will be called. The user will see a prompt dialog if the value of the total expense field is greater than 1,000.

The original Confirm Dialog example uses Total Expense > 1000 as its execution condition and shows “The total amount of this request is greater than 1,000. Please update and try again!” with Cancel and OK buttons. Test an amount at or below 1,000 and another above 1,000 to check when the prompt appears.

You can set multiple steps in your action to execute more complex logics behind.


Link

Select Link from the dropdown of the Execute Type and set the URL for the button’s link. Click the cog to set the link to open in a new window.


Add list item

Choose 'Add List Item' from the dropdown of the Execute Type and select the Application and Data Source. You have the option to configure Default values and Query parameters.

Also you can select which data list form you want to use.

The form selector in the original example is labelled Data list form and shows Default layout. Choose the form used for the new record; this is separate from viewing an existing collection item.

There are four opening options available: pop-up window, Slide-in, Full page, and New page.

For pop-up window and Slide-in options, you can also customize the page size.


Open dashboard

Select Open dashboard from Execute Type, then select the Application and Dashboard. Configure Query parameters as needed.

There are four opening options available: pop-up window, Slide-in, Full page, and New page.

For pop-up window and Slide-in options, you can also customize the page size.

This feature can be applied in scenarios where you have a dashboard that encompasses all projects. If users wish to view their individual work, which is reflected in their own dashboard, you can set up a button linked to another dashboard named "My Work" to display their personal tasks.


Open approval form

Select Open approval form from Execute Type, then select the Application and Approval form. Configure Set variables and Query parameters as needed.

There are four opening options available: pop-up window, Slide-in, Full page, and New page.

For pop-up window and Slide-in options, you can also customize the page size.


Collection item (Only for button within collection)

For a button inside a Collection, select Collection item as the execute type. Choose an Operation: View Item, Edit Item, Delete Item, Update Fields, or Start Workflow. The operation applies to the record represented by the clicked item.

1. View/Edit/Delete Item

For View Item or Edit Item, choose the page or layout to open using the settings available for the selected operation. The selector in the original View Item example is labelled Link. Delete Item removes the current record; do not treat it as another view page. See Collection actions - Delete item for record targeting and confirmation checks.

For operations that open a form, choose from the available opening options: pop-up window, Slide-in, Full page, or New page.

For the pop-up window and Slide-in options, you can also customize the page size.

2.Update Fields

When selecting "Update Fields," you have the option to specify which fields you want to update under the "Select Fields" section. Additionally, you can enable a confirmation message before execution by toggling the "Confirm before execution" switch. Once activated, you can customize the confirmation message as well as the text for the confirm and cancel buttons.

In the original example, Field Settings beside Select fields opens the field configuration. The confirmation message is “Note: This action cannot be undone.” and the button labels are “Yes, Update” and “Cancel”; these are example text, not required values.

3.Start Workflow

For Start Workflow, choose the pre-defined workflow in Select a list workflow. Enable Confirm before execution when users should confirm first, then customize the message and the confirm and cancel button text.

Preview with the intended member role and check the destination, parameters and clicked collection record. For a record-changing operation, use test data and check the source record after execution. If confirmation is enabled, choose Cancel first and verify that no change occurred; opening a page alone does not prove that a record was saved or a workflow completed.

Did this answer your question?