Activity › Forums › Salesforce® Discussions › How to show pageError on JS Controller in Salesforce? Salesforce® Discussions How to show pageError on JS Controller in Salesforce? Posted by Deepak on August 28, 2020 at 4:37 PM How to show pageError on JS Controller in Salesforce? Anjali replied 5 years, 9 months ago 2 Members · 1 Reply 1 Reply Anjali Member August 31, 2020 at 9:53 AM apex error messageWe can implement this requirement by creating new instance of ApexPages. message and then adding message to Apexpages using ApexPages. addmessage. Then displaying these messages in visualforce page. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me