Many dashboards require multiple buttons to perform various actions. For example, one to view a submission and one to delete it.
In this how-to guide, you'll learn how to display a Delete button in a dashboard.
This example includes steps for building a simple dashboard. The dashboard retrieves submissions from the following source module: https://trainingx.unqork.io/#/display/5eb01aa6811bf80215fd706b.
Preconfiguration
Begin by setting up basic components for this example.
Configure the Panel Component
This Panel component acts as a container for the components that follow.
In the Module Builder, drag and drop a Panel component onto the canvas.
In the Property ID field, enter
panelDashboard.Click Save Component.
Configure the Initializer Component
Next, add an Initializer component to trigger a Plug-In component that you'll set up next.
Drag and drop an Initializer component inside the
panelDashboardPanel component.In the Property ID and Canvas Label Text fields, enter
initStart.From the Trigger Type drop-down, select New Submission.
In the Outputs table, enter the following:
#
Source
Type
Value
1
pluginGetSubmissions
trigger
GO
You’ll configure the
pluginGetSubmissionsPlug-In component in the next steps.Click Save Component.
Configure the First Hidden Component
Now, let's add a Hidden component to store the module ID of your source or submission module.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below the Initializer component.In the Property ID and Label Text fields, enter
moduleId.In the Default Value field, enter
5eb01aa6811bf80215fd706b.This module ID is taken from the source module: https://training.unqork.io/#/form/5eb01aa6811bf80215fd706b/edit.
Click Save Component.
Configure the Plug-In Component
This Plug-In component connects the module to the external systems using an API. You’ll use this component to retrieve submissions and display them in your dashboard.
Drag and drop a Plug-In component inside the
panelDashboardPanel component, below the Hidden component.In the Property ID and Canvas Label Text fields, enter
pluginGetSubmissions.From the Internal Services drop-down, select List Submissions for Dashboard. The Data Source URL field autopopulates.
In the Inputs table, enter the following:
#
Property ID
Mapping
1
moduleId
moduleId
2
'firstName,middleName,lastName,email,dateOfBirth'
fields
The first row reference the module ID stored in the
moduleIdHidden component. The second row represents the fields that populate the dashboard. The values entered in the Mapping column (moduleIdandfields) are native values recognized by the Unqork platform.Click Save Component.
Configure the Second Hidden Component
This Hidden component stores the submission ID.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below the Plug-In component.In the Property ID and Label Text fields, enter
submissionId.Set Store Data in Database to
(ON).Click Save Component.
Configure the ViewGrid Component
Next, add a ViewGrid component to display your dashboard. Notice how the Action and Event settings create the View button.
Drag and drop a ViewGrid component inside the
panelDashboardPanel component, below thesubmissionIdHidden component.In the Property Id field, enter
gridView.In the Canvas Label Text field, enter
View Grid.In the Inputs table, enter the following:
#
Source
Required
1
pluginGetSubmissions
Yes (required)
In the Outputs table, enter the following:
#
Source
Mapping
1
submissionId
Id
In the Display table, enter the following:
#
ID
Formula
Heading
1
firstName
First Name
2
middleName
Middle Name
3
lastName
Last Name
4
email
Email
5
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format','MM/DD/YY')
Date of Birth
The Moment.js in the Formula column formats the
dateOfBirthvalues as MM/DD/YY.In the Action and Event fields, enter
View.Click Save Component.
Configuration
Next, you’ll add the second action button by updating the ViewGrid component and configuring a new Plug-In and Decisions component.
Update the ViewGrid Component
Hover over the
gridViewViewGrid component and click the
(Settings) button.End the end of the Display table, enter the following:
ID
Formula
Heading
Type
CSS
Button
Delete
Delete
(checked)The ID value here is not acting as a Property ID, so it does not need to be in camel case. The field simply needs a value for the button to work.

Click Save Component.
Configure the Plug-In Component
This Plug-In component uses the Deletes Multiple Module Submissions API to delete the submission and remove it from your dashboard.
Drag and drop a Plug-In component onto the canvas, placing it below the
submissionIdHidden component.In the Property ID and Canvas Label Text fields, enter
pluginDelete.From the Internal Services drop-down, select Deletes Multiple Module Submissions.
In the Data Source URL field, enter
/fbu/uapi/forms/{{data.moduleId}}/submissions?ids={{data.submissionId}}.Here, you’re adjusting the Data Source URL that populates when you select the Deletes Multiple Module Submissions service. The default value requires that you enter a module ID. The new Data Source URL references the module ID stored in the
moduleIDHidden component. It also references single submission IDs, stored in thesubmissionIdHidden component. Now, clicking your Delete button deletes one specific submission at a time.
From the Post Trigger drop-down, enter
pluginGetSubmissions.Doing so triggers
pluginGetSubmissionsPlug-In component to refresh your dashboard after every deletion.
Click Save Component.
Configure the Decisions Component
Next, you'll add a Decisions component to link your Delete button to the pluginDelete Plug-In component.
Drag and drop a Decisions component onto the canvas, placing it below the
gridViewViewGrid component.In the Property ID and Canvas Label Text fields, enter
ruleButtons.In the Inputs table, enter the following:
#
Source
Type
Silent
1
buttonClick
exact
2
moduleId
exact
(checked)3
submissionId
exact
(checked)In the Outputs table, enter the following:
#
Source
Type
1
panel
pageOpen
2
pluginDelete
trigger
In the Conditionals table, enter the following:
#
buttonClick
moduleId
submissionId
panel_pageOpen
pluginDelete_trigger
1
Delete
GO
2
View
=concatenate('/#/display/',moduleId,'/', submissionId , '/',moduleId)
.png)
Click Save Component.
Save your module.
Here's how the completed example looks in the Module Builder:
Here's how the completed example looks in Express View:

Many dashboards require multiple buttons to perform various actions. For example, one to view a submission and one to delete it.
In this how-to guide, you'll learn how to display a Delete button in a dashboard.
This example includes steps for building a simple dashboard. The dashboard retrieves submissions from the following source module: https://trainingx.unqork.io/#/display/5eb01aa6811bf80215fd706b.
Preconfiguration
Begin by setting up basic components for this example.
Configure the Panel Component
This Panel component acts as a container for the components that follow.
In the Module Builder, drag and drop a Panel component onto the canvas.
In the Property ID field, enter
panelDashboard.Click Save & Close.
Configure the Initializer Component
Next, add an Initializer component to trigger a Plug-In component that you'll set up next.
Drag and drop an Initializer component inside the
panelDashboardPanel component.In the Property ID and Canvas Label Text fields, enter
initStart.From the Trigger Type drop-down, select New Submission.
In the Outputs table, enter the following:
#
Property ID
Type
Value
1
pluginGetSubmissions
trigger
GO
You’ll configure the
pluginGetSubmissionsPlug-In component in the next steps.Click Save & Close.
Configure the First Hidden Component
Now, let's add a Hidden component to store the module ID of your source or submission module.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below the Initializer component.In the Property ID and Canvas Label Text fields, enter
moduleId.In the Default Value field, enter
5eb01aa6811bf80215fd706b.This module ID is taken from the source module: https://training.unqork.io/#/form/5eb01aa6811bf80215fd706b/edit.
Click Save & Close.
Configure the Plug-In Component
This Plug-In component connects the module to the external systems using an API. You’ll use this component to retrieve submissions and display them in your dashboard.
Drag and drop a Plug-In component inside the
panelDashboardPanel component, below the Hidden component.In the Property ID and Canvas Label Text fields, enter
pluginGetSubmissions.From the Internal Services drop-down, select List Submissions for Dashboard. The Data Source URL field gets auto populated.
In the Inputs table, enter the following:
Property ID
Mapping
moduleId
moduleId
'firstName,middleName,lastName,email,dateOfBirth'
fields
The first row reference the module ID stored in the
moduleIdHidden component. The second row represents the fields that populate the dashboard. The values entered in the Mapping column (moduleIdandfields) are native values recognized by the Unqork platform.Click Save.
Configure the Second Hidden Component
This Hidden component stores the submission ID.
Drag and drop a Hidden component inside the
panelDashboardPanel component, below the Plug-In component.In the Property ID and Canvas Label Text fields, enter
submissionId.Set Store Data in Database to
(ON).Click Save & Close.
Configure the ViewGrid Component
Next, add a ViewGrid component to display your dashboard. Notice how the Action and Event settings create the View button.
Drag and drop a ViewGrid component onto the canvas below the
submissionIdHidden component.In the Label field, enter
View Gridand Property Name asgridView.In the Action and Event fields, enter
View.In the Inputs table, enter the following:
ID
Required
pluginGetSubmissions
(checked)In the Outputs table, enter the following:
ID
Mapping
submissionId
id
In the Display table, enter the following:
ID
Formula
Heading
firstName
First Name
middleName
Middle Name
lastName
Last Name
email
Email
dateOfBirth
=MOMENT(MOMENT(dateOfBirth), 'format','MM/DD/YY')
Date of Birth
The Moment.js in the Formula column formats the
dateOfBirthvalues as MM/DD/YY.Click Save.
Configuration
Next, you’ll add the second action button by updating the ViewGrid component and configuring a new Plug-In and Decisions component.
Update the ViewGrid Component
Hover over the
gridViewViewGrid component and click the
(Settings) button.At the bottom of the Display table, enter the following:
ID
Formula
Heading
Type
CSS
Button
Delete
Delete
(checked)The ID value here is not acting as a Property ID, so it does not need to be in camel case. The field simply needs a value for the button to work.

Click Save.
Configure the Plug-In Component
This Plug-In component uses the Deletes Multiple Module Submissions API to delete the submission and remove it from your dashboard.
Drag and drop a Plug-In component onto the canvas, placing it below the
submissionIdHidden component.In the Property ID and Canvas Label Text fields, enter
pluginDelete.From the Internal Services drop-down, select Deletes Multiple Module Submissions.
In the Data Source URL field, enter
/fbu/uapi/forms/{{data.moduleId}}/submissions?ids={{data.submissionId}}.Here, you’re adjusting the Data Source URL that populates when you select the Deletes Multiple Module Submissions service. The default value requires that you enter a module ID. The new Data Source URL references the module ID stored in the
moduleIDHidden component. It also references single submission IDs, stored in thesubmissionIdHidden component. Now, clicking your Delete button deletes one specific submission at a time.
In the Post Trigger drop-down, enter
pluginGetSubmissions.Doing so triggers
pluginGetSubmissionsPlug-In component to refresh your dashboard after every deletion.
Click Save.
Configure the Decisions Component
Next, you'll add a Decisions component to link your Delete button to the pluginDelete Plug-In component.
Drag and drop a Decisions component onto the canvas, placing it below the
gridViewViewGrid component.In the Property ID and Canvas Label Text fields, enter
ruleButtons.In the Inputs table, add the following:
Source
Type
Silent
buttonClick
exact
moduleId
exact
(checked)submissionId
exact
(checked)In the Outputs table, add the following:
Source
Type
panel
pageOpen
pluginDelete
trigger
In the Micro Decisions table, add the following:
buttonClick
moduleId
submissionId
panel_pageOpen
pluginDelete_trigger
Delete
GO
View
=concatenate('/#/display/',moduleId,'/', submissionId , '/',moduleId)

Click Save.
Save your module.
Here'show the completed example looks in the Module Builder:
Here's how the completed example looks in Express View:


