You need to sign in to do that
Don't have an account?

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
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
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
- We can implement this requirement by creating a new instance of ApexPages.message and then adding a message to Apex pages using ApexPages.addmessage. Then display these messages in a visual force page.
- We can add 5 different types of message in Visualforce Page. In the example below, we are showing 5 input fields of account. We have added a button on a visualforce page. Different type of message will be shown on a visualforce page if we will keep any field blank.
- Please follow the below link for more info
- http://www.sfdcpoint.com/salesforce/show-error-message-visualforce-page/
- http://sfdcsrini.blogspot.com/2014/12/show-error-message-in-visualforce-page.html
I hope it will be helpful.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar