How to remove errors (without a server trip)


#1

Is there any way to remove errors with reposting to the server?

The use-case is as follows. The user create a new record which has a name and phone. Only fills in the phone. It saves, the server returns a field error says the name is mandatory. It has correctly applied in the record (record.errors.name)

Now they clear out the phone, which essentially sets the record back to it’s original not-dirty state. Is there anyway in that case to clear the ‘name’ error without going back to the server? In my view the record is no longer dirty, therefore shouldn’t have any errors.

Thanks.