Programatically Invoke Delete List Item in Nintex Form

  • 11 November 2016
  • 2 replies
  • 55 views

Badge +2

Have a Nintex Form (with a Project Lead people picker control) and per the requirement would have to allow edit/delete operations only if the current user matches with the user set in the Project Lead control.  From Edit/Save operation perspective, was able to achieve it by setting the Rules to perform the validation and disable the "Save" button.

 

However, for Delete need suggestions on how to associate custom JS / Rules to perform this validation.  One approach that I tried was to hide the default "Delete" button on the Form Ribbon and add a custom button to the Nintex Form to programmatically perform the "Delete" operation (by enabling/disabling it).  But couldn't figure out as to how to invoke the "Delete" operation when the button is pressed. 

 

Is there a way to link my new button to the hidden ribbon "Delete" button, to simulate the same "Delete" operation, when pressed"

 

Thanks,

Karthik.


2 replies

Badge +2

Was able to solve it using Custom JS to Form Settings.  Here is the code :

NWF$(document).ready(function(){   

        NWF$('#RibbonDeleteButton').hide();

});

Badge +10

HI Karthikeyan,

This will not invoke delete operation for the item

Reply