Skip to main content

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

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.