Tutorials

/

Email Element: How Do You Use It?

With the email element, you can automatically validate the email address format and prevent the creation of invalid records by displaying an error message to the user in case of invalid entries.

‍

‍

The “Email” element is a special input element that allows users to enter data in the format of a valid email address. Unlike standard “Text Input” elements, it automatically validates whether the entered value conforms to the email format.
In the “Data Sources” module, under the “Tables” section, create a table structure named “Verification” as shown on the screen.
Switch to the “UI Design” module and add a “Label” element to the page. Type “Verification Email” in the “Value” field. From the “Styling” panel, select “Heading 5 Text.” Add the “Email” element to the page. Enable the “AllowClear” property. Add a “Button” element below it. Type “Verify” in the “Label” field. Using “Add Actions” on the button, follow the “onClick” and “ManageDB” steps to define the “Save Record” action. Select the “Verification” table you created. Select all the columns that appear. For the “Email” field, define “Components,” “Email,” and “value”; for the “Id” field, define “Default” and “New Guid.”
When the application is tested, if an invalid email address is entered in the verification email field and the verification process is initiated, the input field enters a warning state. In this case, an error message is displayed to the user indicating that a valid email address must be entered, and the operation is not performed.