AnsweredAssumed Answered

Cancel delete on repeating section row

Question asked by humz on Oct 22, 2017
Latest reply on Apr 2, 2018 by gregr

Is it possible to cancel the delete event on a repeating section row?


I have setup a prompt on the repeating section "RegisterRepeaterRowDeleting" event, if the user presses cancel I am throwing a JavaScript error to stop the row from being deleted, but I don't like this approach and wanted to know if there was any other way to stop the delete event from proceeding.


NWF.FormFiller.Events.RegisterRepeaterRowDeleting(function () {

   var confirmDelete = confirm("Are you sure you want to delete?");

    if (confirmDelete != true) {

       //this is the only way to stop deletion

       throw "Repeater deletion error thrown to cancel deleteion";

      //return false; -> just returning false didn't work




NOTE: I have already tried just return false which did not work.