Ask AI
Skip to main content

Set value of radiobutton field

Function: Set value of radiobutton field

This action allows you to programmatically select an option within a specific Radio Button Field on your form. Once a value is set, it updates the field's selection, which can then be used by other actions or saved when the form is submitted.

Input,

  • UI element
    • Description: The specific Radio Button Field on your form that you want to update. This is a required input.
    • Type: PART (specifically a radio button field)
  • Answer
    • Description: The exact text of the option you want to select within the chosen Radio Button Field. This value must precisely match one of the available choices in that field. If no answer is provided or if it doesn't match an existing option, an error will occur.
    • Type: STRING

Output,

This action does not produce a direct output value. Instead, it updates the selected choice within the specified Radio Button Field on your form.

Execution Flow,

Real-Life Examples,

Example 1: Pre-filling a user preference

Imagine you have a user profile form where you want to pre-select a user's preferred contact method based on their existing data.

  • Inputs:
    • UI element: "Preferred Contact Method" (a radio button field with options like "Email", "Phone", "SMS")
    • Answer: "Email"
  • Result: The "Preferred Contact Method" radio button field on the form will automatically have "Email" selected when the form loads.

Example 2: Changing selection based on another input

Consider a survey form where selecting "Yes" on a previous question should automatically select a specific option in a related radio button field.

  • Inputs:
    • UI element: "Subscription Type" (a radio button field with options like "Standard", "Premium", "Enterprise")
    • Answer: "Premium"
  • Result: When the condition is met (e.g., user selects "Yes" on a checkbox), the "Subscription Type" radio button field will automatically change its selection to "Premium".

Example 3: Resetting a field to a default value

You might have a "Clear Form" button that resets certain fields to their initial or default values.

  • Inputs:
    • UI element: "Payment Method" (a radio button field with options like "Credit Card", "PayPal", "Bank Transfer")
    • Answer: "Credit Card"
  • Result: When the "Clear Form" button is clicked, the "Payment Method" radio button field will be set back to "Credit Card", assuming it's the default option.