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.
  • RE: WebForm_DoPostBackWithOptions not saving record in D365

    Hi,

    i have same issue,

     any solution?

  • blackorchid Profile Picture
    blackorchid 5 on at
    RE: WebForm_DoPostBackWithOptions not saving record in D365

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

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans