troubleshooting Question

Create a message box with three buttons

Avatar of Horalia Rodriguez
Horalia RodriguezFlag for United States of America asked on
7 Comments1 Solution298 ViewsLast Modified:
I have a button at the end of a form which runs an update query and I added a message that pops up asking the user to confirm if the record is to be updated. I now would like to give the user another choice, how can I add an extra button to accomplish this? Here's the code I have so far:

function doSaveRpt(button, command)
  var message = "Are you sure you want to save this report?";
  var proceed = confirm(message);
      button.form.command.value = command;

With this code, I only get two buttons, OK and Cancel. I would like to change the display of the buttons, for example, Save and Complete, Save and Pending, Cancel. Thanks!
Systems architect
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros