Set value of url input field
Function: Set Value of URL Input Field
This function allows you to automatically fill in a web address (URL) into a specific URL input field on your application's form. This is useful for pre-populating fields, updating them based on other actions, or clearing their content.
Input,
- UI element (PART): This is the specific URL input field on your form that you want to update. You will select it directly from your application's design interface. This input is required.
- Answer (URL): This is the actual web address (URL) you want to place into the selected URL input field. For example,
https://www.yourwebsite.com. If you leave this blank, the field will be cleared. This input is optional.
Output,
No direct output is returned by this action. The selected UI element's value is updated within your application.
Execution Flow,
Real-Life Examples,
Example 1: Pre-filling a website link for a new user
Imagine you have a form for new users to sign up, and you want to automatically suggest a default website link for their profile.
- Inputs:
- UI element: "User Website Link" (This is a URL input field on your user signup form)
- Answer:
https://www.welcometomyplatform.com
- Result: When a new user opens the signup form, the "User Website Link" field will automatically display
https://www.welcometomyplatform.com.
Example 2: Updating a product's external link based on a selection
Suppose you have a product catalog where selecting a product from a dropdown should update an external link field to point to that product's page on an e-commerce site.
- Inputs:
- UI element: "Product External URL" (This is a URL input field on your product detail page)
- Answer:
https://shop.example.com/product/item456(This URL would typically be retrieved dynamically based on the selected product)
- Result: After a user selects "Product B" from a dropdown, the "Product External URL" field will instantly update to show
https://shop.example.com/product/item456.
Example 3: Clearing a URL field
You might have a form where users can optionally provide a "Reference Document URL." If a user decides not to provide one, you want to ensure the field is empty.
- Inputs:
- UI element: "Reference Document URL" (This is a URL input field on your project submission form)
- Answer: (Leave this input blank)
- Result: The "Reference Document URL" field on the project submission form will be cleared, removing any previously entered web address.