function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vipul Sharma 15Vipul Sharma 15 

Adderror() is called in SF1 app and should prevent a record from getting approved, but it processes the record

Hello ,
Here is the scenario,
I have an apex trigger and its handler class with an adderror method, so whenever a record is in approval process and some user tries to approve/reject a record without entering any commnets , addError method is called and it shows the mesaage that comments cannot be blank but after refreshing the page, the record status is changed from Pending to Approved. 
This is working well and good in sfdc web but coming to SF1 I am facing this issue , record is getting approved/Rejected even after adderror throws an error(it should not happen) inn SF1. 

Please advice how to overcome it. Or if more information is needed do let me know. Thanks for the assistance.