Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

In CRM Portal Profile page need a sapce update button and cancel button

(0) ShareShare
ReportReport
Posted on by 120

Hi Team,

In my crm portal profile page i have added cancel button using custom jaavscrpt

  1. $(document ).ready(function() {  
  1. //Add cancel button next to update button  
  2. $('#ContentContainer_MainContent_MainContent_ContentBottom_SubmitButton').after('<input type="button" value="Cancel" onclick="OnCancelClick()" id="CancelButton" class="btn btn-primary"/>')  
  3. });  
  4. //Navigate to home page on Cancel Click  
  5. function OnCancelClick()  
  6. {  
  7.     window.location.href="/";  
  8. }  

Button added but there is no space between Update & cancel like below

5008.pastedimage1657731543368v1.png

Please help here

  • Haritha222 Profile Picture
    120 on at
    RE: In CRM Portal Profile page need a sapce update button and cancel button

    Thanks for the reply,

    I got a cancel button, but issue is there is no space between Update & Cancel button like above image

  • CRMJetty Profile Picture
    3,508 on at
    RE: In CRM Portal Profile page need a sapce update button and cancel button

    Hello,

    Pls refer this below thread,

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/290239/portal---button-create-custom-button-in-profile-page-of-custom-portal?pifragment-97030=1

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,869 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,733 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans