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
shaker shaikhshaker shaikh 

how to show error on same page even i put feildname.adderror('You can not delete Active accounts'); it take me on new page is anyone can answer it ... thanks in advance

how to show error message on same page even i put feildname.adderror('You can not delete Active accounts'); it takes me on new page for showing error can anyone answer it ... thanks in advance
NagendraNagendra (Salesforce Developers) 
Hi Shaikh,

May I suggest you please check with below link from the stack exchange community with a similar issue. Please let us know if this helps.

Thanks,
Nagendra
shaker shaikhshaker shaikh
thanks nagendra, now i am sure it needs to creat custom VF page i thought there is some function or something available to achive this..