Get value of url field
Function: Get value of url field
This action helps you retrieve the web address (URL) that a user has entered into a specific URL input field on your application's form or page. Once retrieved, this URL is stored in a variable, making it available for other actions or logic in your application.
Input
- UI element: This is the specific URL input field on your page or form from which you want to get the entered web address. You must select a UI element that is designed to accept URLs (specifically a 'url-input-field').
- Type: PART
- Required: Yes
Output
- Answer: This is the name of the variable where the retrieved URL will be stored. You can then use this variable in subsequent actions. If you don't specify a name, it will default to
URL_FIELD_ANSWER.- Type: STRING
Execution Flow
Real-Life Examples
-
Saving a Company Website Link from a User Profile:
- Scenario: Your application has a user profile page where users can enter their company's website URL. After the user clicks "Save Profile," you want to capture this URL.
- Inputs:
- UI element: Select the "Company Website" input field from the user profile form.
- Answer:
CompanyWebsiteURL
- Result: The URL entered by the user (e.g., "https://www.examplecorp.com"\) is stored in a variable named
CompanyWebsiteURL. You can then use this variable to save the URL to the user's database record.
-
Validating a Download Link Before Displaying:
- Scenario: You have an admin panel where administrators can add download links for resources. Before displaying the link to end-users, you want to ensure a URL was actually provided in the input field.
- Inputs:
- UI element: Select the "Download Link" input field on your resource management form.
- Answer:
ResourceDownloadLink
- Result: The URL entered by the administrator (e.g., "https://cdn.myfiles.com/document.pdf"\) is stored in the
ResourceDownloadLinkvariable. You can then add a condition to check if this variable is empty before making the link visible or active.
-
Dynamically Redirecting to a User-Provided URL:
- Scenario: Your application includes a "Share Feedback" form where users can optionally provide a URL to a screenshot or video demonstrating their issue. After submission, you want to get this URL to include it in a support ticket.
- Inputs:
- UI element: Select the "Screenshot/Video URL" input field from the feedback form.
- Answer:
FeedbackMediaURL
- Result: The URL provided by the user (e.g., "https://imgur.com/a/screenshot123"\) is stored in the
FeedbackMediaURLvariable. This variable can then be used to populate a field in your support ticket system.