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
Somasundaram S 1Somasundaram S 1 

how to display warning message

am using standard object if some of the record reaches certain condition i would like to display warning message when end user open the record
how to do it
one way i can create VF page and based on the condition i will set record type and open the VF page other than this i just create computed text field and use the formula to display the message other than these two is there any easy way to prompt the warning message please advise me
 
RD@SFRD@SF
Hi Sundaram,

1. The formula approach would be best cause you won't have to do much development.
2. Additional method: You can write a visual force page, which looks at the condition and shows a message. and you can add the VF page on the page layout. This can be useful in two ways.
a) You don't have to write a custom controller and change record types.
b) It can act as a notice on the page layouts.
c) As it uses the standard controller itself, the message which you want to show can be edited easily.
d) Faster to implement as you won't have to rework any config done on the standard page layouts.

Hope it helps
RD

 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Somasundaram, I hope it will be helpful.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar