You might use an Initializer component to automatically answer a set of questions. Or connect it to a Plug-In component that controls an API call. Whatever function your Initializer component serves, you have a couple of options for triggering it. To trigger your Initializer component manually, you'll use a Button component.
In this how-to guide, you'll configure your Initializer component and reference its Property ID when configuring your Button component. In this example, you'll create a simple application with two Yes or No questions. Then, you'll add an Initializer component to select Yes for both questions. Instead of having the Initializer component handle the action automatically, you’ll use a Button component to serve as the trigger. When your end-user clicks the button, both answers will display as Yes.
Configure the Radio Buttons Components
First, create the questions using two Radio Buttons components.
In the Module Builder, drag and drop a Radio Buttons component onto your canvas.
In the Property ID field, enter
completeApplication.In the Label Text field, enter
Did you complete this application yourself?.Complete the Values table as follows:
#
Label
Value
1
Yes
yes
2
No
no
Click Save Component.
Drag and drop another Radio Buttons component onto your canvas, placing it below the previous one.
In the Property ID field, enter
applicationStarted.In the Label Text field, enter
Did you start this application less than one month ago?.Complete the Values table as follows:
#
Label
Value
1
Yes
yes
2
No
no
.png)
Click Save Component.
Configure the Initializer Component
Next, let's set up your Initializer component to send yes values to both of your questions.
Drag and drop an Initializer component onto your canvas, placing it below your Radio Buttons components.
In the Property ID and Label Text field, enter
initRadioButtons.In the Outputs table, enter the following:
#
Source
Type
Value
1
applicationStarted
value
yes
2
completeApplication
value
yes
.png)
Click Save Component.
Configure the Button Component
Lastly, you'll add a Button component to trigger your Initializer component.
Drag and drop a Button component onto your canvas, placing it below your Initializer component.
In the Property ID field, enter
btnYesToAll.In the Label Text field, enter
Yes To All.From the Action Type drop-down, select Event.
From the On Click drop-down, select initRadioButtons.
.png)
Click Save Component.
Save your module.
Here's how your completed example looks in the Module Builder:
.png)
Preview your module in Express View and click the Yes To All button. You'll see the answers to your questions automatically display as Yes.

You might use an Initializer component to automatically answer a set of questions. Or connect it to a Plug-In component that controls an API call. Whatever function your Initializer component serves, you have a couple of options for triggering it. To trigger your Initializer component manually, you'll use a Button component.
In this how-to guide, you'll configure your Initializer component and reference its Property ID when configuring your Button component. In this example, you'll create a simple application with two Yes or No questions. Then, you'll add an Initializer component to select Yes for both questions. Instead of having the Initializer component handle the action automatically, you’ll use a Button component to serve as the trigger. When your end-user clicks the button, both answers will display as Yes.
Configure the Radio Buttons Components
First, create the questions using two Radio Buttons components.
In the Module Builder, drag and drop a Radio Buttons component onto your canvas.
In the Property ID field, enter
completeApplication.In the Label Text field, enter
Did you complete this application yourself?.Complete the Values table as follows:
#
Option Label
Value to Store in Submission Data
1
Yes
yes
2
No
no
Click Save & Close.
Drag and drop another Radio Buttons component onto your canvas, placing it below the previous one.
In the Property ID field, enter
applicationStarted.In the Label Text field, enter
Did you start this application less than one month ago?.Complete the Values table as follows:
#
Option Label
Value to Store in Submission Data
1
Yes
yes
2
No
no
.png)
Click Save & Close.
Configure the Initializer Component
Next, let's set up your Initializer component to send yes values to both of your questions.
Drag and drop an Initializer component onto your canvas, placing it below your Radio Buttons component.
In the Property ID and Canvas Label Text field, enter
initRadioButtons.In the Outputs table, enter the following:
#
Property ID
Type
Value
1
applicationStarted
value
yes
2
completeApplication
value
yes
.png)
Click Save & Close.
Configure the Button Component
Lastly, you'll add a Button component to trigger your Initializer component.
Drag and drop a Button component onto your canvas, placing it below your Initializer component.
In the Property ID field, enter
btnYesToAll.In the Label Text field, enter
Yes To All.Set the Action Type as Event.
From the On Click drop-down, select initRadioButtons.
.png)
Click Save & Close.
Save your module.
Here's how your completed exxample looks in the Module Builder:
.png)
Preview your module in Express View and click the Yes To All button. You'll see the answers to your questions automatically display as Yes.
