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
SIVASASNKARSIVASASNKAR 

Opening a visualforce page from normal apex class or from Trigger please help me

HI Everyone,

I wish to display a message like "You are not allowed to edit the Close Date" in opportunity object while updating an opportunity record useing standard UI (not Visualforce page). So I want to open a visualforce page from trigger or normal apex class.

 

Please help me.

 

Thanks & Regards,

Sivasankar

Shailesh DeshpandeShailesh Deshpande
You an simply use validation rules instead of using apex class or a trigger.