Editor: Removing a row on Submit

Editor: Removing a row on Submit

Tech360Tech360 Posts: 6Questions: 5Answers: 0

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

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Rather than using row().remove(), use a where 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

This discussion has been closed.