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
TrueorFalsevalue.
Output
This action does not produce any direct output. It modifies the specified UI element directly within your application.
Execution Flow
Real-Life Examples
-
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
- UI element:
- Result: The
Customer Name Input Fieldon the order form will automatically display "John Doe".
- Inputs:
-
Setting a Shipping Preference:
- Inputs:
- UI element:
Express Shipping Toggle(e.g., a slide toggle switch) - Answer:
True
- UI element:
- Result: The
Express Shipping Togglewill be switched ON, indicating express shipping is selected.
- Inputs:
-
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"]
- UI element:
- Result: The
Product Categoriesfield will display "Electronics", "Home Goods", and "Books" as selected options.
- Inputs: