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
KIBLKIBL 

Soft error message

Is there a way to create a 'soft error' message in SFDC?  I want to alert users that when they change the stage to a certain value they should then enter products.  I don't want to stop them from being able to save the record at this point.  I just want to tell them they should enter products.

 

Can you help?

AvromAvrom

Certainly. Take a look at the ApexPages.Message class (pp. 347-348 of the VF developer's guide) for information on constucring a message, and look at the method ApexPages.addMessage() (p. 339 of the VF developer's guide) for information about addit it to the page.

 

There's nothing in the process of manually adding such a message to the context that requires you to block the user's requested action.