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

Community site session details

Session Id : qIUwPyEO1EP4rxl13PNhC3
Power Pages - General Discussions
Answered

How to add validation on registration page

Like (0) ShareShare
ReportReport
Posted on 10 Aug 2023 16:15:50 by 150

Hi everyone,

 

Does anybody know how to add a validation to check if the email has a valid format for example it must have @ sign following with .com etc.

 

bssienes_0-1691684125935.png

 

Categories:
  • Verified answer
    Lucas001 Profile Picture
    2,258 Super User 2025 Season 2 on 11 Aug 2023 at 05:58:22
    Re: How to add validation on registration page

    Hi @bssienes,

     

    if I remember correctly there already is some validation set up.

    But you can add some more validation for sure.

     

    You need to create a content snippet Account/Register/PageCopy the correct spelling is important.

    Set it to HTML and write you code in the HTML.

     

    <script>
    $(document).ready(function(){
    
    //Your code here
    
    });
    </script>

     

    You can add as much validation as you want.

    If you want to display some hints etc. you can try using the :after element (Sometimes it's working sometimes not, couldn't figure out yet when it does and when not) or you can use the jQuery .inserAfter() Method to add some text directly below the input field which has a unique id or a css selector.

     



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete