Cancel subform delete
Cancel subform delete
I have a form with a table of subform rows. I need to allow users to delete rows but not all rows. The capability to delete a row needs to be determined by a value in the subform record. I understand that I cannot conditionally enable/disable the delete function but was wondering if there was another way to achieve what I want.
The onValidate function of a form provides the ability to 'cancel submit'. A 'cancel delete' function in onDeleteRow could give me what I need but alas it doesn't exist.
- onDeleteRow() {
- if( row.value> 0 )
- {
- cancel delete;
- }
- }
Any advice on how to achieve this?
Thanks,
Ben.