I would like to display message with particular information in Salesforce.

I have created a custom field of type rich text and made it read only but it does not allow me to display the message I want.

Please see the screenshot what I want to achieve.

enter image description here

and please advise is this feasible and how to create such field containing message inside?



  • Can you add some detail about when you want to show the message, eg is there a triggering action? You could this with a formula field or code but it depends on what you trying to achieve. – Girbot Feb 22 '16 at 11:20
  • No, there is no trigger action. I merely want the following message "Please type and enter the domains by separating them with a space (e.g "acme.com summit.com")." to appear all the time above the Domain field. Could you please advise how to dislpay the message in the layout above the Domain field? – Dylan D Feb 22 '16 at 11:27
  • 2
    Couple of options, use a help hint on the field it self - if you need a more obvious message you could use a text formula with your message in there. – Girbot Feb 22 '16 at 11:34
  • 2
    the text formula idea works great for the View page but won't appear on the New/Edit page. For New/Edit page - the only real solution besides hover help is VF -- or, have a good Validation Rule and the users will self-cure/self-learn by making mistakes and getting the error – cropredy Feb 22 '16 at 16:47
  • Ok, but could you please advise and give an example how to create such validation rule and what to include in the validation rule in order to display the message I need? – Dylan D Feb 22 '16 at 17:48

What you want to do is called the placeholder text. This is an attribute supported in HTML5, and you can set it in a VisualForce page via html passthrough.

There is an interesting answer here: https://success.salesforce.com/answers?id=90630000000hITqAAM

If this is a normal object layout, then we'll need to keep investigating :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.