Ask AI
Skip to main content

Set value of ANY form field

Function: Set value of ANY form field

This action allows you to dynamically update the content or selection of any form field in your application. Instead of a user manually typing or selecting, you can use this action to pre-fill fields, change selections based on other data, or clear fields.

Input

  • UI element (PART): This is the specific form field component on your page that you want to modify. You must select a form field here.
  • Answer (VARIABLE): This is the value you want to set for the chosen form field. The type of value you provide depends on the type of form field:
    • For text input fields (like text boxes, number fields, email fields, date fields, color pickers, dropdowns, radio buttons, sliders, password fields, URL fields), provide a single piece of text or a number.
    • For checkboxes or chips input fields, you can provide a list of text items.
    • For slide toggles, provide a True or False value.

Output

This action does not produce any direct output. It modifies the specified UI element directly within your application.

Execution Flow

Real-Life Examples

  1. Pre-filling a Customer Name Field:

    • Inputs:
      • UI element: Customer Name Input Field (e.g., a text input field on an order form)
      • Answer: John Doe
    • Result: The Customer Name Input Field on the order form will automatically display "John Doe".
  2. Setting a Shipping Preference:

    • Inputs:
      • UI element: Express Shipping Toggle (e.g., a slide toggle switch)
      • Answer: True
    • Result: The Express Shipping Toggle will be switched ON, indicating express shipping is selected.
  3. Selecting Multiple Product Categories:

    • Inputs:
      • UI element: Product Categories (e.g., a chips input field or a multi-select checkbox list)
      • Answer: ["Electronics", "Home Goods", "Books"]
    • Result: The Product Categories field will display "Electronics", "Home Goods", and "Books" as selected options.