Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Portals username/ Email switch over no longer mandatory?

Posted on by 1,336

When I use the following function:  Authentication/Registration/LocalLoginByEmail 

the username field is gone, which is what I want however the email field is added but there is no asterix?

2019_2D00_05_2D00_20-09_5F00_57_5F00_16_2D00_Sign-in_A000B700_-Customer-Self_2D00_Service.png 

This has been flagged as a potential problem for users - any ideas how I can get the asterix back, as soon as I set that to false and username comes back the asterix shows. 

  • Suggested answer
    Justin Wilkinson Profile Picture
    Justin Wilkinson 1,336 on at
    RE: Portals username/ Email switch over no longer mandatory?

    Leo thank you so much for this very helpful!

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Portals username/ Email switch over no longer mandatory?

    Hi partner,

    It is by design. You could add "*" by code on the portal.

    1. Go to you Dynamics 365 Portals->Content Snippets and create a new record named "Account/SignIn/PageCopy".

    2. Set the value as the screenshot shows below, and add the jquery code to control the class of the email label on the signin page or portal.

    community460.png

    3. Save and return to your signin page, here is the result.

    community460.png

    <script>
        $(window).load(function() {
            debugger;
           $("Label").addClass("required");
           
        });
    
    
    </script>


    The thought is that we could edit the signin page throuhg adding custom js/jquery/css code in the Content Snippets "Account/SignIn/PageCopy" record. So we just need to catch the Email Label and add a "required" class to it.

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans