How to prevent deletion for certain rows?

How to prevent deletion for certain rows?

pisislerpisisler Posts: 125Questions: 24Answers: 1
edited June 2018 in Free community support

In remove code, you can check row data before deletion; but how to prevent deletion for certain values?

Like in this pseudo code for example;

if (rowData.stock > 0)
  return "You can not delete this product because it is still in stocks..".

Answers

This discussion has been closed.