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. Once retrieved, this URL is stored in a variable, making it available for other actions or parts of your application to use. For example, you might want to validate the URL, display it elsewhere, or use it to navigate to another page.
Input
- UI element: This is the specific URL input field on your form from which you want to get the web address. You need to select the exact URL input field component that your users interact with.
Output
- Answer: This is the name of the variable where the retrieved web address (URL) will be stored. You can use this variable later in your application to access the URL. By default, this variable will be named
URL_FIELD_ANSWER, but you can change it to something more descriptive if you wish.
Execution Flow
Real-Life Examples
-
Example: Validating a Website Link
- Scenario: You have a form where users can submit their personal website link, and you want to capture this link for further processing or display.
- Inputs:
- UI element: Select the "Website URL" input field from your form.
- Answer:
UserWebsiteLink
- Result: The web address entered by the user in the "Website URL" field (e.g.,
https://www.mywebsite.com) is stored in a variable namedUserWebsiteLink. You can then use thisUserWebsiteLinkvariable in a subsequent action to validate its format or display it on a confirmation page.
-
Example: Dynamic Image Loading
- Scenario: Your application allows users to provide a URL to an image, which then needs to be displayed on another part of the page.
- Inputs:
- UI element: Select the "Image Source URL" input field.
- Answer:
ImageURL
- Result: If a user enters
https://example.com/myimage.jpginto the "Image Source URL" field, this URL is saved into theImageURLvariable. This variable can then be used by an image display component to dynamically load and show the image.
-
Example: Collecting Resource Links
- Scenario: You are building a resource library where users can submit links to helpful articles or documents. You need to capture these links for your database.
- Inputs:
- UI element: Select the "Resource Link" input field.
- Answer:
SubmittedResource
- Result: When a user inputs
https://docs.example.org/article123into the "Resource Link" field, this exact URL is stored in theSubmittedResourcevariable. This variable can then be added to a list of resources or saved to a database.