Forum Discussion
Customize Forms Using PowerApps: Validation Issues
According to https://docs.microsoft.com/en-us/dynamics365/customer-engagement/customize/types-of-fields, a URL field is just a text field with URL formatting and a rule that text entered that doesn't begin with "http://" (or "https://") will have "http://" prepended to it.
What if you add validation in PowerApps that requires a valid URL? In other words, what if you make sure that only syntactically valid URLs are entered before a save action can be performed?
Issues is not displaying the error message on the validation - when I click on save, it shows dots to save but there is no action. When I go and enter valid url, it saves the form. Did you have issues displaying the error messages for the field validation?
- Joseph BolandJul 09, 2018Brass Contributor
In my case, PowerApps/SharePoint applied validation to an optional field when it was blank and failed to save. It also failed to display the error message associated with the field. The validation that created this problem was in SharePoint. I resolved this problem by adding a clause to the SharePoint validation to accept an empty string.
I did not have a problem with not showing an error message for an invalid field where the validation was in PowerApps.
I'm on vacation this week so may not be able to respond further until next Monday.