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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Hide username when registering locally in Dynamics portal

(0) ShareShare
ReportReport
Posted on by 54

I would like to hide the username when registering (locally). In our case the username is always the email address.

I tried adding this code in Account/Register/PageCopy:

<script>
$(document).ready(function () {
var email = $('#ContentContainer_MainContent_MainContent_EmailTextBox').val();
$('#ContentContainer_MainContent_MainContent_UserNameTextBox').val(email);
$('#ContentContainer_MainContent_MainContent_ShowUserName').hide();
});
</script>

The last 'hide' command works fine, but somehow I'm not able to copy the email value to the UserName text box.

Thanks a lot!

Elowy.

I have the same question (0)
  • Verified answer
    Nicholas Hayduk Profile Picture
    2,863 on at

    Hi Elowy,

    There actually an easier way to accomplish this.  Set the following Site Setting to "true":

    Authentication/Registration/LocalLoginByEmail

    Then the Portal users the email address field instead of username, and you don't have to worry about the two getting out of sync.

    Nick

  • Elowy GrootCRM Profile Picture
    54 on at

    Yeah, great! That is what I am looking for...

    Thanks a lot!

    Elowy.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans