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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Username validation (j...
Power Pages
Unanswered

Username validation (javacript | reg expression)

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I got a requirement to validate the default username field on a custom form.

 

With the requirement

 

- at least 8 characters

Following characters are possible:

- Upper and lowercase

- digits

- special characters +-@._

 

Could anyone assist me with the creation of the javascript?

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Do you need this to be done via JS? is this the username on the Register page or a Basic Form/Advanced Form?

    Basic/Advanced form gives you the ability of adding a REGEX validation via Metadata: Configure basic form metadata for portals - Power Apps | Microsoft Docs

     

  • Community Power Platform Member Profile Picture
    on at

    Yes thank you! I did mange to add the regex via entity form meta data!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard