web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to add validation rules in powerapps portals

(0) ShareShare
ReportReport
Posted on by 45

Hi,

is possible to add validation rule on a web form in powerapps portals?

For example, I need to verify that an email address is formally corrected (contains @ or .)

I have to use a custom js? I read this article and BR are not supported.

https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/entity-forms

Thanks in advance.

I have the same question (0)
  • Verified answer
    Joseph McGregor Macdonald Profile Picture
    597 on at

    Hi AleVer

    You can add regular expression validation via configuration. If you create an Entity Form Metadata record for the attribute there is a field Regular Expression you can enter for validation. Note this only works for single line of text fields

    If you need to add custom JavaScript validation this document contains details on how to do it in the section named 'Additional client-side field validation' download.microsoft.com/.../Administrator's Guide to Portal Capabilities for Microsoft Dynamics 365.pdf

    If you are doing JavaScript, CSS or HTML for Power Portals you may find my visual studio extension beneficial. It has a feature to export the HTML, CSS and JavaScript configurations into files in a Visual Studio project, and right click to deploy into the relevant configuration record josephmcmac.wordpress.com/.../developing-microsoft-portal-code-in-visual-studio-using-josephm-xrm-vsix

  • AleVer Profile Picture
    45 on at

    Hi Joseph,

    thank you very much, I successfully validated the e-mail address.

    Have a nice day.

    Alessia

  • Suggested answer
    Summer Garg Profile Picture
    585 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans