Button Component
Estimated Reading Time: 10 minutes
Overview
The Button component adds an interactive, clickable element to your module. Buttons allow end-user End-Users are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product.s to perform actions and make choices with a single button-click. As a creator Also known as Unqork users; anyone who is inside the Unqork platform., you can use Buttons to set custom actions or process flows based on your end-user's choices.
Some ways you might use the Button component include:
-
Saving, submitting, validating, or resetting a module.
-
Triggering another component, such as an Initializer, Decisions, or Data Workflow component.
-
Navigating between Panels.
-
Downloading a Managed Asset, such as a PDF or CSV file.
-
Labeling the Button-click event by giving it an Event ID. After setup, you can then reference that Event ID in different components, allowing you to create more complex logic-based configurations. For example, triggering several different components with a single button-click Event ID.
-
Using the Workflow Element Type, adding custom navigation buttons to a workflow.
You'll find the component under the Secondary Fields group to the left of the Module Editor.
What You'll Learn
After completing this article, you’ll know when to use a Button component, how to configure its settings, and how to use it in an Unqork application.
About the Configuration Window
Once you drop a component onto the Module Editor canvas, the following settings windows display:
General
Setting |
Description |
---|---|
Property ID |
A Property ID is the unique field ID used by Unqork to track and link components in your module. The Property ID is how the software identifies your component. Using Property IDs lets you link components, creating logic-based configurations and API APIs (application programming interfaces) are a set of protocols and definitions developers use to build and integrate application software. APIs act as the connective tissue between products and services. calls. Property IDs must use camel case A naming convention for computer programming. Use camelCase for Property IDs, for example: newUser, lastName, & rdoButton. (stylized as camelCase) without spaces or punctuation. |
Notes |
Select this tab to display the component's Notes area. You can use notes to keep your teammates informed. The Notes editor offers a semi-WYSIWYG (What You See is What You Get) content editor. Built to look like a word processor, this editor lets you create, edit, and format your notes. Notes save when saving the component. |
|
Select this tab to manage your component's display settings. |
|
Select this tab to manage your component's actions settings. |
|
Select this tab to manage your component's advanced settings. |
|
Select this tab to see the RBAC RBAC (Role-Based Access Control) is a method to control system access for authorized users. The role in RBAC refers to the levels of access employees have to a network. (role-based access control) settings of the component. |
|
Assign components one-word labels to help organize, identify, and group the components in your application. Consider an example from the API Specification Snippet: Field Tags are applied to Hidden components in the panelRequest and panelResponse Panels. The Field Tags identify the data type of parameters included in the API APIs (application programming interfaces) are a set of protocols and definitions developers use to build and integrate application software. APIs act as the connective tissue between products and services. request and response. The API Docs Dashboard tool populates with information about each parameter’s data type, identified by the Field Tag. Field Tags act as a type of Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. group and let you group components for configuration purposes. Field Tags let you target two or more components using a simple logic component. For example, add the Field Tag tagForDecision to multiple components in your module. Open the Inputs table of a Decisions component and reference the tagForDecision Field Tag as the input of the Decisions component. The output of the Decisions component then affects all components with the tagForDecision Field Tag. Save your Field Tags by pressing Enter (Return) or adding a comma after each entry. |
|
Select this tab to open the list of supported keyboard shortcuts you can use in the component settings modal. Keyboard shortcuts include:
Additional keyboard shortcuts:
|
|
Select this tab to access the component documentation in Unqork's In-Product Help. |
Cancel |
Click this button to undo any unsaved configuration changes and return to the canvas. |
Save & Close |
Click this button to save all settings as configured and return to the canvas. |
Display Panel
Field Text
Default State Options
|
Formatting
|
Actions Panel
Element Type
A choice chip displaying the following options:
Module
Used for adding interactive buttons to a module.
Workflow
Used for adding custom navigation buttons to a module that's part of a workflow. Buttons added here replace the workflow's default navigation buttons.
NOTE Custom navigation buttons only display on the module they're added to. If your workflow has several Screen/Task nodes, you need to add custom navigation buttons to each module linked to a Screen/Task node. Or, you can add custom navigation buttons to select pages of your workflow.
TIP When adding custom navigation Buttons to a workflow, disable the default navigation buttons. This avoids displaying two sets of navigation buttons. Set the Hide Express Navigation Buttons toggle to (ON) for the Screen/Task node linked to your module.
Action Type
The Action Type choice chip varies based on the selected Element Type.
For the Module Element Type, the choice chip displays the following button-click actions:
Actions |
Description |
---|---|
Save |
Saves, validates, and creates a submission to the database. |
Save Draft |
Saves and creates a submission to the database but doesn't validate the page's information. |
Event |
Trigger an event by specifying a Property ID in a Trigger field. Or, lets you create an Event ID to reference in another component to trigger that component on button-click. |
Validate |
Validates the information on the page but doesn't create a submission. |
Reset |
Clears data and resets the Disabled, Hidden, and Required settings for all components in the module. This setting is similar to using the Reset and Clear Output Types together in a logic component. |
For the Workflow Element Type, the choice chip displays the following button-click actions:
Actions |
Description |
---|---|
Next |
Takes your end-user to the next step in your workflow. |
Previous |
Takes your end-user to the previous step in your workflow. |
Go to |
Takes your end-user to the specified step in your workflow. You'll enter the appropriate step in the Step Path field. |
Workflow
Triggers
|
User Feedback
Error Message
|
Advanced Panel
Additional Display Options
|
Additional Styling
|
Adding a Button Component
As an example, let's create a simple information intake module with a Save-action button. We'll customize the appearance of the Button component by adding an icon to it. We'll also set a custom confirmation dialog.
What You Need
For this configuration, you'll need the following components:
-
1 Columns component
-
2 Text Field components
-
1 Email component
-
1 Phone Number component
-
1 Button component
Configure the Columns Component
The Columns component helps organize your module.
1. | Drag and drop a ![]() |
2. | In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter columns. |
3. | Under Formatting, click the icon displaying ![]() |
4. | Click Save & Close. |
Configure the Text Field Components
Start the configuration with two Text Field components to capture the end-user's first and last names. By placing the Text Field components in the Columns component, the fields will appear next to each other.
1. | Drag and drop two ![]() ![]() |
Property ID | Label Text |
---|---|
firstName |
First Name |
lastName |
Last Name |
3. | Save & Close each component as you add it. |
Configure the Email Component
Next, an Email component collects the end-user's email address.
1. | Drag and drop an ![]() ![]() ![]() |
2. | In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter emailAddress. |
3. | In the Label Text Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. field, enter Email Address. |
4. | Click Save & Close. |
Configure the Phone Number Component
Use a dedicated Phone Number component to collect the end-user's phone number.
1. | Drag and drop a ![]() ![]() ![]() |
2. | In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter phoneNumber. |
3. | In the Label Text Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. field, enter Phone Number. |
4. | Click Save & Close. |
Configure the Button Component
The Button component saves and creates a submission with the information on the page. After you customize your button's appearance, ask the end-user for permission to contact them.
1. | Drag and drop a ![]() ![]() ![]() |
2. | In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter btnSave. |
3. | In the Label Text Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. field, enter Save. |
4. | Set the Action Type The action performed by the button when selected. to Save. |
5. | In the Advanced Settings Right Icon Use this field to add icons (glyphs) to the right of your Button's Label Text. field, enter glyphicon glyphicon-ok-sign. Entering this adds a checkmark icon to your button. |
7. | In the Dialog Heading Enter a title for the confirmation dialog to display on button-click. field, enter Please read and confirm. |
8. | In the Dialog Message Display Dialog on Click field, enter I agree to sharing my information with Farmers Insurance Group. I give permission to Farmers Insurance Group to contact me.. |
9. | In the Button Label for Dismiss Enter a Label for the Button to dismiss the dialog message. Actions associated with the button-click will not continue. field, enter No, cancel. |
10. | In the Button Label for Confirm Enter a Label for the Button to confirm understanding of the dialog message. Actions associated with the button-click will continue. field, enter OK, continue. |
11. | Click Save & Close. |
12. | Save your module. |
Preview your module in Express View Express View is how your end-user views you application. Express View also lets you preview your applications to test your configuration and view the styling. After configuring a module, click Preview in the Module Editor to interact with the module in Express View. You'll see the following functionality:
Resources