Tutorials

/

URL Element: How Do You Use It?

Using the URL element, you can allow users to validate their LinkedIn profile links, save them to the system, and view their saved links in an organized manner.

‍

‍

To ensure users can quickly access their professional profiles in an application, it is important to enter the LinkedIn profile link correctly and accurately. In this scenario, the “URL” element is used to allow the user to add their LinkedIn profile address.

In this video, we’ll examine how to use this element using the “Add LinkedIn Profile Link” scenario as an example.

First, start by setting up the table structure named “UserProfileLinks” on the screen from the “Tables” section in the “Data Sources” module.

Use the “New SQL Action” field to create an action named “GetUserProfileLinks.” Delete the table name, retype it, and press “Enter.” This will automatically add the correct schema name before the table name. Next, test and save your changes.

Switch to the “UI Design” module and drag a “Label” element onto the screen. Type your text into the “Value” field. In the “Styling” panel, select “Heading 5 Text” as the font from the “Style” field. Drag and drop the “Url” element onto your page. Add your text to the “Placeholder” field. Enable the “AllowClear” property. Add a “Button” element below it. Type “Add” in the “Label” field. Add a “Save Record” action to the button. Set the table selection to “UserProfileLinks.” Select all the columns that appear. Set the “CreatedDate” field to “Default,” “Now.” Set the “LinkedinUrl” field to “Components,” “Url,” “value”; the “UserName” field to “Default,” “User,” “Current Username”; and the “Id” field to “Default,” “New Guid.” Click on the “Url” element. Click the “Add Validation” field in the “Properties” panel and edit the text in the “Invalid Message” field. Click the button and follow the steps: “Add Action,” “onClick,” “Custom,” “ManageDB,” and “GetUserProfileLinks.” Then click anywhere on the page. Define the “GetUserProfileLinks” action as the “Initial Action” for the page. Click the “Action Tree” area in the left-hand panel. Drag the “GetUserProfileLinks” action from the left-hand panel to the screen by holding down the icon on its right side. Make your selections in the pop-up window and create the action.

When the application is tested, a “URL” input field appears to add a LinkedIn profile link to the user’s account. If the user clicks the “Add” button without entering a LinkedIn profile URL in this field, the field is highlighted with a red border and a “URL Field Is Empty” warning message is displayed. When a valid LinkedIn link is entered, the warning is automatically cleared. Upon clicking the “Add” button, the entered link is saved to the system and displayed in the list area below along with the User Name, LinkedIn URL, and Created Date. This feature allows users to easily track and save the LinkedIn profile links they’ve added.