- Getting Started
- Demo apps
- How To
- Build Your First App
- Build a Mobile-Friendly App
- General User Experience Guidelines
- Use Master Detail View
- Use Document Viewer
- Use Count With Choice Set Values
- Use Selected Values From a Table
- Embed Apps
- Embed Maps
- Hide Containers Using a Button
- Include MailTo Links
- Include Star Ratings
- Set External Context
- Work With Data Source and Value Bind
- Use the Send Interim Result Activity
- Public Apps
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Values
- Rule: Start Process
- Rule: Upload File to Storage Bucket
- Rule: Get File From Storage Bucket
- Rule: Reset Values
- Rule: Create/Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Guid
- Function: Length
- Function: List
- Function: StartsWith
- Function: Sum
- Function: Sort
- Function: Now
- Function: Today
- Function: Time
- Function: Year
- Function: Month
- Function: Day
- Function: Hour
- Function: Minute
- Function: New
- Function: Lookup
- Function: Filter
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Leveraging Media in your app
- Leveraging Actions in your app
- Leveraging Connections in your apps
- Application Lifecycle Management (ALM)
- UiPath First-Party Apps
- Basic Troubleshooting Guide
Apps User Guide
Use Required Input Validation
=true
. You can also set up an error message if the control is not filled in runtime using the Required Error Message property.
You can add text next to the control using the new Label property. You can place the label either above or to the the left of the control by using the Label Placement property from the Style tab.
This property is currently available for the following input controls:
- Date Picker
- Dropdown
- File Picker
- Multiselect dropdown
- Radio Button
- Slider
- Text Area
-
Textbox
The Container control also has an isValid property.
In the exercise below we will build a simple form with required input validation. You can use this exercise to better understand how required input validation works and learn how to use it efficiently in your apps.
- Open your already existing application or start a new one.
-
Add a Button control to your app.
- Add
Subscribe
in the Text property.
- Add
-
Add a new blank page to your app.
- Rename the page to Subscribe Page.
-
Add a Header display control on top of the page.
- Add
Subscribe to this app
in the Text property.
- Add
-
Add a Textbox control below the header.
- Rename it to
Name
. - Add
Name:
in the Label property. - Set the Required property from the Validation to
=true
.
- Rename it to
-
Add a Textbox control below the Name textbox.
- Rename it to
Email
. - Add
Email:
in the Label property. - Set the Required property from the Validation to
=true
.
- Rename it to
-
Add a Datepicker control below the last textbox.
- Rename it to
Date of birth
. - Add
Date of birth:
in the Label property.
Set the Required property from the Validation to=true
.Note:Each of these controls have an isValid property. This property will tell us if a control is valid or not.
By default, when the Required property of a control is set to=true
, the control will not be valid.Figure 2. - Rename it to
-
Add a Button control below the datepicker.
- Add
Submit
in the Text property. -
In the Disabled property, use the isValid property from the previously configured controls to build the following expression:
=! Name.isValid || !Email.isValid || !Date of birth.isValid
.
- Add
-
Go to the Subscribe button from the Main Page and configure the Clicked on event.
- Add an Open a Page rule.
- Add the Subscribe Page in the What page to open field.
-
Mark the Show as Pop-Over (Modal) checkbox.
After following all the steps above, you can preview your app.
In preview mode, if you click the Subscribe button, the Subscribe Page will open. Notice that the Submit button is disabled and it only becomes enabled once all the required fields are filled in.