Checkboxes Component
![](../Resources/Images/Inline/UDesigner_Logo.png)
Overview
With a Checkboxes component, you can create a question with more than one possible answer. Checkboxes let your end-user End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. choose more than one response from your provided options. As a comparison, the Radio Buttons component only allows one selection. With a Checkboxes component, your end-user can compare all available options, selecting all that apply.
Here are some examples of checkbox questions:
-
Do you have any of the following medical conditions? Please select all that apply.
-
What sports do you play on a regular basis? Please select all that apply.
-
Which of these account types are you interested in opening? Please select all that apply.
The Checkboxes component has built-in Select All and None of the Above options. This adds more versatility to your application and prevents conflicting responses.
You can also use a Checkboxes component to trigger a Text Field component to display. Think of this as a write-in option for your end-user. For example, if none of the provided answers apply, they can select the Other box, which displays a separate text field. That way, your end-user can enter their response.
A Checkboxes component can also trigger an existing component. For example, an end-user who wants to open an account can select Retirement from a list of options. When they select the Retirement box, a new drop-down displays to select a specific account type.
You'll find the Checkboxes component in the Primary Fields group to the left of the Module Builder.
About the Configuration Window
To learn more about general component settings and those that display when a component is associated with Data Models, view our General Component Settings article.
Display Panel
Field Text
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. |
Label Text |
Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. User-friendly labels make your module more accessible. Keep labels short and descriptive (a word or two) using title case. For longer entries, use sentence case. |
Contextual Help
Setting |
Description |
---|---|
Tooltip |
A short hint that displays when an end-user positions their cursor over the |
Helper Text |
A quick tip describing the expected value of an input field. Unlike a Tooltip, Helper Text stays visible under the input field and displays on a single line. |
Default State Options
Setting |
Description |
---|---|
Disable User Input |
When set to (ON), end-users cannot interact with or edit the Express View's input field or element. When end-users hover over the field, their cursor changes to alert them to the status change. By default, the Disable User Input toggle is set to (OFF). |
Hide Field |
Shows or hides the component from view. Setting the Hide Field toggle to (ON) hides the component in Express View. Setting the toggle to (OFF) shows the component. The component is always visible in the Module Builder. By default, the Hide Field toggle is set to (OFF). |
Formatting
Setting |
Description |
---|---|
Number of Columns |
The number of columns in which you want the checkboxes evenly arranged. You have the option of By default, the checkboxes align on a single column. |
Adding a Checkboxes Component
Now, let's create an application that will collect the medical history of an applicant.
These instructions assume that you have an open modulesaved with a title.
Configure the Checkboxes Component
1. | In the Module Builder, 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 medicalHistory. |
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 Do you have, or have you had any of the following? Please check all that apply.. |
4. | Under Formatting, set the Number of Columns to ![]() |
5. | Navigate to the component's Data settings. |
6. | To the right of the Values table, click Edit. The Values pane displays. |
7. | In the Values table, enter the following: |
# | Option Label | Value to Store in Submission Data |
---|---|---|
1 |
Angina |
angina |
2 |
Asthma |
asthma |
3 |
Breathing Problems |
breathingProblems |
4 |
Chest Pains |
chestPains |
5 |
Diabetes |
diabetes |
6 |
Hay Fever |
hayFever |
7 |
High Blood Pressure |
highBloodPressure |
8 |
Rheumatism |
rheumatism |
9 |
Shingles |
shingles |
10 |
Ulcers |
ulcers |
8. | In the upper-right corner of the Values pane, click Close. The new values display in the component's configuration panel. |
9. | Set Selection to Uncheck All Options to (ON). |
10. | Navigate to the component's Validation settings. |
11. | Set Required to (ON). |
12. | Click Save Component. |
13. | 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. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View.. You'll see the following functionality:
Structure of a Checkboxes Component's Data
Using the example above, 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. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View., execute the AngularJS AngularJS is a JavaScript framework added to an HTML page with a <script> tag. AngularJS extends HTML attributes and binds data to HTML using expressions. command in the DevTools Console The DevTools Console helps you securely store, build, test, and deploy your software.. The medicalHistory Checkboxes component stores selected options in an array when viewed in the developer console. If no options have been checked, then the array is empty.
Resources