web
You’re offline. This is a read only version of the page.
close
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

WebForm_DoPostBackWithOptions not saving record in D365

(0) ShareShare
ReportReport
Posted on by 680
Hello Everyone.I need to create a custom save button along with the submit button that is already present. Here is the code I wrote 
//Custom Save As Draft Button
$("div.actions").append("<input type='button' id='btnSaveDraft' name='btnSaveDraft' value='Save As Draft' class='submit-btn btn btn-primary form-action-container-left' />");
 
$("#btnSaveDraft").bind("click", function () {
 
//Call Save method to save the record to D365.
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions($(this).prev().attr("btnSaveDraft"),"",true,"","", false, true));
};
it is not saving the record it just reloads with the informaton filled. Article I referred
Any help would be appreciated. Thanks.
I have the same question (0)
  • blackorchid Profile Picture
    5 on at

    Did you find an answer to this?  I am having the same issue.

  • hari.mallampati@hotmail.com Profile Picture
    172 on at

    Hi,

    i have same issue,

     any solution?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans