Get value of radiobutton field
Function: Get value of radiobutton field
This action helps you retrieve the selection made by a user in a radio button group on your application's form. It then saves this selected value into a variable so you can use it in other parts of your application, such as displaying it, using it in calculations, or saving it to a database.
Input
- UI element (Required): This is the specific radio button group on your form from which you want to get the user's selection. You must select a UI element that is specifically a "radiobutton-field" type.
Output
- Answer (Text): This is the name of the variable that will hold the selected value from the radio button group. By default, it will be named
RADIOBUTTON_FIELD_ANSWER, but you can change this to something more descriptive if needed. The actual selected value (e.g., "Yes", "Option A") will be stored inside this variable.
Execution Flow
Real-Life Examples
Here are some examples of how you can use this action in your applications:
-
Capturing User Preference
- Inputs:
- UI element:
PreferredContactMethod(a radio button group on a user profile form with options like "Email", "Phone", "SMS") - Answer:
UserContactPreference
- UI element:
- Result: The application will create a variable named
UserContactPreferenceand store the user's chosen contact method (e.g., "Email") inside it. This variable can then be used to send notifications via the preferred method.
- Inputs:
-
Survey Response
- Inputs:
- UI element:
Question1_Satisfaction(a radio button group in a survey form with options like "Very Satisfied", "Satisfied", "Neutral", "Dissatisfied") - Answer:
SatisfactionLevel
- UI element:
- Result: A variable named
SatisfactionLevelwill be created, containing the user's selection for the satisfaction question (e.g., "Satisfied"). This allows you to analyze survey results later.
- Inputs:
-
Order Option Selection
- Inputs:
- UI element:
DeliveryOption(a radio button group on an order form with options like "Standard Shipping", "Express Shipping", "Pickup In-Store") - Answer:
SelectedDeliveryMethod
- UI element:
- Result: A variable named
SelectedDeliveryMethodwill be created, holding the chosen delivery option (e.g., "Express Shipping"). This variable can then be used to calculate shipping costs or update the order details.
- Inputs: