+ 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
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

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

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

Rahul Kumar