Hi Experts,
when the user redeems the invitation, I want to populate user's Email in Username field and Hide that email field and lock username field on the Registration page. I am not able to find the page and control of email, username fields on the registration page of CRM Portal.
Thanks.
*This post is locked for comments
I am tried the same code. It hides the email field but doesn't display email as username in the username field. Do I need to change anything else?
Thanks
Perfect. It is working as expected.
Hi Rohini,
Create a new Content Snippet with the name: Account/Register/PageCopy, and paste below code under Copy/HTML control.
<script>
$(document).ready(function () {
var email = $('#ContentContainer_MainContent_MainContent_EmailTextBox').val();
$('#ContentContainer_MainContent_MainContent_UserNameTextBox').val(email);
$("#ContentContainer_MainContent_MainContent_UserNameTextBox").attr('readonly', 'readonly');
$("#ContentContainer_MainContent_MainContent_ShowEmail").hide();
});
</script>
If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.
Cheers
Arpit
https://arpitmscrmhunt.blogspot.in
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156