customize default button in crm 4.0
-
Tuesday, August 07, 2012 9:39 AM
hello all
i want to customize save and new button in entity form like below
so it will be look like save and close button.
how can i do that??
Kartik Ghodasara Associative Software engineer, Synoverge Tech Pvt. Ltd. Ahmedabad
All Replies
-
Tuesday, August 07, 2012 10:20 PM
Hi Kartik,
Please find below code to Append Text to "Save and New" button.
// Function to Add "Save and New" Text to the button function AddSaveAndNewButtonName() { var saveAndNew = document.getElementById('_MBcrmFormSubmitCrmForm59truetruefalse').childNodes[0].childNodes[0]; var spanTag = document.createElement('span'); spanTag.setAttribute('tabIndex','0'); spanTag.setAttribute('class','ms-crm-MenuItem-TextRTL'); spanTag.innerHTML = 'Save and New'; saveAndNew.appendChild(spanTag); } // Call the Above Method AddSaveAndNewButtonName();Add the above code to your Form OnLoad event.
Prathmesh If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful" http://patelprathmesh.blogspot.com/
- Marked As Answer by kartik ghodasara Wednesday, August 08, 2012 4:41 AM
-
Wednesday, August 08, 2012 4:41 AM
Thanks Prathmesh.
it's working.
Kartik Ghodasara Associative Software engineer, Synoverge Tech Pvt. Ltd. Ahmedabad

