Skip to main content
Nintex Community Menu Bar
Question

Delete a record in mobile

  • July 9, 2024
  • 1 reply
  • 5 views

Forum|alt.badge.img+7

When designing a mobile interface using the mobile composer, how do you create a ‘Delete’ record button?

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+13

Currently this requires a JavaScript Snippet like this:

var params = arguments[0],<br>&nbsp; &nbsp; model = params.model,<br>&nbsp; &nbsp; row = params.item ? params.item.row : params.row;<br>if (model &amp;&amp; row) {<br>&nbsp; &nbsp; model.deleteRow(row);<br>&nbsp; &nbsp; model.save();<br>} else {<br>&nbsp; &nbsp; console.error('could not find a model or row');<br>}


We’re working on releasing an action to do this natively in the Action Framework.