Formula Expression is required on the action attributes error

Formula Expression is required on the action attributes error

Formula Expression is required on the action attributes error occurs when pagereference(‘/apex/pageName’) doesn’t have backslash in front of apex keyword.

Correct Code: 

pagereference('/apex/sample1');

Incorrect Code: 

pagereference('apex/sample1');

in incorrect code, backslash (‘/’) is missing in front of apex.

Leave a Reply