cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Programatically Invoke Delete List Item in Nintex Form

Jump to solution

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.

Labels: (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Programatically Invoke Delete List Item in Nintex Form

Jump to solution

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

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

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

});

0 Kudos
Reply
Workflow Hero

Re: Programatically Invoke Delete List Item in Nintex Form

Jump to solution

HI Karthikeyan,

This will not invoke delete operation for the item

0 Kudos
Reply