This how-to guide provides an example of how to use the Calculator and Decisions components to create more complex logic-based configurations. You'll focus on assigning a point value for each possible answer to a question. Then, you'll use a Calculator component to calculate the total points value and create a score. And then you'll use a Decisions component to set up outcomes based on that score.
Configuration
In this guide, you'll assess if your end-user prequalifies for a mortgage.
Configure the Radio Buttons Components
Begin by setting up some questions for your end-user to answer. You'll add four questions, each with Yes or No answers. You'll assign each answer a point value of 0 or 1. Your end-users’ answers create a total score to decide if they prequalify.
In the Module Builder, drag and drop four Radio Buttons components onto your canvas, placing them one below the other.
In the Property ID and Label Text fields, enter the following:
#
Property ID
Label Text
1
creditScore
Do you have a credit score of at least 700?
2
downPayment
Will you put down at least 20% of the purchase price as your down payment?
3
lateFees
Have you incurred any late payment fees in the last 12 months?
4
bankruptcy
Have you ever declared bankruptcy?
In the
creditScoreanddownPaymentRadio Buttons components, complete the Values table as follows:Label
Value
Yes
1
No
0
In the
lateFeesandbankruptcyRadio Buttons components, complete the Values table as follows:Label
Value
Yes
0
No
1
Click Save Component for each component as you add it.
Configure the Hidden Component
Next, configure a Hidden component to store the combined point values of your questions.
Drag and drop a Hidden component onto your canvas, placing it below the Radio Buttons components.
In the Property ID and Label Text fields, enter
sumScore.Click Save Component.
Configure the Calculator Component
Next, configure the Calculator component with your Radio Buttons component as your inputs. Use the Excel SUM function to add point values for each answer and assign aliases as inputs for the SUM formula.
Drag and drop a Calculator component onto your canvas, placing it above your
sumScoreHidden component.In the Property ID and Label Text fields, enter
calcApproval.In the Inputs table, enter the following:
Source
Alias
Required
creditScore
A
(checked)downPayment
B
(checked)lateFees
C
(checked)bankruptcy
D
(checked)In the Outputs table, enter the following:
Source
Formula
sumScore
=SUM(A,B,C,D)

Click Save Component.
Configure the Text Field Component
Next, configure a Text Field component to display the message if the end-user has qualified.
Drag and drop a Text Field component onto your canvas, placing it below the
calcApprovalCalculator component.In the Property ID field, enter
qualified.In the Label Text field, enter
Are you pre-qualified?.From the Input Behavior drop-down, select the Disable User Input. This option makes the Text Field component non-editable for the end-users.
Click Save Component.
Configure the Decisions Component
Lastly, configure a Decisions component to create your score-based outcomes. If your end-user's combined score is between 0 and 2, they do not meet the criteria to prequalify. If their combined score is between 3 and 4, they do.
Drag and drop a Decisions component onto your canvas, placing it above the
Are you pre-qualified?Text Field component.In the Property ID field, enter
ruleApproval.In the Canvas Label Text field, enter
Approval Decision.In the Inputs table, set the following:
#
Source
Type
Required
1
sunScore
range
Yes (checked)
In the Outputs table, set the following:
#
Source
Type
1
qualified
value
In the Conditionals table, enter the following:
#
sumScore_min
sumScore_max
qualified_value
1
3
4
Congratulations! You pre-qualify.
2
0
2
Sorry, but you don't pre-qualify at this time.

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

Preview your module in Express View and select answers to your questions. Based on what you select, you'll either see the approval or rejection message display.

This how-to guide provides an example of how to use the Calculator and Decisions components to create more complex logic-based configurations. You'll focus on assigning a point value for each possible answer to a question. Then, you'll use a Calculator component to calculate the total points value and create a score. And then you'll use a Decisions component to set up outcomes based on that score.
Configuration
In this guide, you'll assess if your end-user prequalifies for a mortgage.
Configure the Radio Buttons Components
Begin by setting up some questions for your end-user to answer. You'll add four questions, each with Yes or No answers. You'll assign each answer a point value of 0 or 1. Your end-users’ answers create a total score to decide if they prequalify.
In the Module Builder, drag and drop four Radio Buttons components onto your canvas, placing them one below the other.
In the Property ID and Label Text fields, enter the following:
#
Property ID
Label Text
1
creditScore
Do you have a credit score of at least 700?
2
downPayment
Will you put down at least 20% of the purchase price as your down payment?
3
lateFees
Have you incurred any late payment fees in the last 12 months?
4
bankruptcy
Have you ever declared bankruptcy?
For the
creditScoreanddownPaymentRadio Buttons components, complete the Values table as follows:Option Label
Value to Store in Submission Data
Yes
1
No
0
For the
lateFeesandbankruptcyRadio Buttons components, complete the Values table as follows:Option Label
Value to Store in Submission Data
Yes
0
No
1
Click Save & Close each component as you add it.
Configure the Hidden Component
Next, configure a Hidden component to store the combined point values of your questions.
Drag and drop a Hidden component onto your canvas, placing it below the Radio Buttons components.
In the Property ID and Label Text fields, enter
sumScore.Click Save & Close.
Configure the Calculator Component
Next, configure the Calculator component with your Radio Buttons component as your inputs. Use the Excel SUM function to add point values for each answer and assign aliases as inputs for the SUM formula.
Drag and drop a Calculator component onto your canvas, placing it above your
sumScoreHidden component.In the Property ID and Canvas Label Text fields, enter
calcApproval.In the Inputs table, enter the following:
#
Property ID
Alias
Required
1
creditScore
A
(checked)2
downPayment
B
(checked)3
lateFees
C
(checked)4
bankruptcy
D
(checked)In the Outputs table, enter the following:
#
Property ID
Formula
1
sumScore
=SUM(A,B,C,D)

Click Save & Close.
Configure the Text Field Component
Next, configure a Text Field component to display the message if the end-user has qualified.
Drag and drop a Text Field component onto your canvas, placing it below the
calcApprovalCalculator component.In the Property ID field, enter
qualified.In the Label Text field, enter
Are you pre-qualified?.Set Disable User Input to
(ON). This option makes the Text Field component non-editable for the end-users.Click Save & close.
Configure the Decisions Component
Lastly, configure a Decisions component to create your score-based outcomes. If your end-user's combined score is between 0 and 2, they do not meet the criteria to prequalify. If their combined score is between 3 and 4, they do.
Drag and drop a Decisions component onto your canvas, placing it above the
Are you pre-qualified?Text Field component.In the Property ID field, enter
ruleApproval.In the Canvas Label Text field, enter
Approval Decision.In the Inputs table, set the following:
Property ID
Type
Required
sunScore
range
(checked)In the Outputs table, set the following:
Property ID
Type
qualified
value
In the Micro Decisions table, enter the following:
sumScore_min
sumScore_max
qualified_value
3
4
Congratulations! You pre-qualify.
0
2
Sorry, but you don't pre-qualify at this time.

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

Preview your module in Express View and select answers to your questions. Based on what you select, you'll either see the approval or rejection message display.
