Add a confirmation box to a delete button. - InfoPath Dev
in

InfoPath Dev

Add a confirmation box to a delete button.

Last post 03-13-2009 11:28 AM by Hilary Stoupa. 16 replies.
Page 2 of 2 (17 items) < Previous 1 2
Sort Posts: Previous Next
  • 03-13-2009 10:11 AM In reply to

    Re: Add a confirmation box to a delete button.

    F%#@ yes!  Got it figured out from some code Matt Faus posted about adding a confirmation to a submit button, not sure why I didn't find it before.  Anyway, here it is in case anyone else wants to know.

     var response = XDocument.UI.Confirm("Do you really want to delete?",4);

    if(response == 6)

    {

    var thisNode = eventObj.Source.selectSingleNode(".");

    thisNode.parentNode.removeChild(thisNode);

    }

     else

    {

    return;

     

     

    Cheers for all your help, I hope this is the last time I'll have to do this!

     

     

  • 03-13-2009 11:28 AM In reply to

    Re: Add a confirmation box to a delete button.

    Wonderful, I'm so glad you figured it out, and thank you for posting your solution for others.

    Hilary Stoupa

Page 2 of 2 (17 items) < Previous 1 2
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.