Editor: Removing a row on Submit
Editor: Removing a row on Submit
I have a list of 1000 students the job of my associate is to fill in their phone numbers one by one. The ideal interaction would be to check whether the phone number is set, and if that is true, the row should vanish from the table.
I have come across
onSubmitSuccess
and
table.row().remove()
My question is how do I reference the exact row which I am editing through the Editor modal or through Bubble Edit? Is there any unique identity for each of the rows which is accessible from Editor?
Answers
Rather than using
row().remove()
, use awhere
condition in the server-side libraries (are you using PHP, .NET, NodeJS or your own?). If you apply a condition which means the row will no longer be shown (e.g. telephone number is not null) then the row will be removed after an edit that sets the telephone number.Allan