Recently I had a requirement where my customer wanted to put a Cancel button in the registration screen of Dynamics 365 Portal. To explain the requirement, the OOB screen looks like below.
What my customer wanted was to place the Cancel button beside the Register button. So that when he clicks on the Cancel button, it should throw the user back to the login page.
So let’s see how to do it.
Step 1: Create a content snippet
Go to settings –> portals –> content snippets
Create a content snippet with Name = Account/Register/PageCopy and Type = HTML. Check for the below screenshot
Save the record.
Step 2: Write the content of the HTML to render the Cancel button
Copy and paste the below in the Value (HTML) field
$(document).ready(function () );
There is one trick here. If you just Copy/ Paste the above code in the HTML field, it will render as text on the Registration Page.
So the trick is to follow the below steps before copy/ pasting the above code.
Click on the Source Icon as highlighted below. Once you click, it becomes a HTML editor.
Now copy and past the above code.
Save and refresh your portal.
Hope this helps!
For corporate training/ consulting, please write to us at firstname.lastname@example.org
Published at Thu, 24 May 2018 03:18:15 +0000
[unable to retrieve full-text content]