Ask AI
Skip to main content

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:

  1. Capturing User Preference

    • Inputs:
      • UI element: PreferredContactMethod (a radio button group on a user profile form with options like "Email", "Phone", "SMS")
      • Answer: UserContactPreference
    • Result: The application will create a variable named UserContactPreference and 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.
  2. 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
    • Result: A variable named SatisfactionLevel will be created, containing the user's selection for the satisfaction question (e.g., "Satisfied"). This allows you to analyze survey results later.
  3. 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
    • Result: A variable named SelectedDeliveryMethod will 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.