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
Pat PowerPat Power 

How to include example text in fields

As part of case intake, or really any form we present to a customer, we want to include example text within the fields to clarify to the customer the intent of each field.

For example, for the field Details, which is a freeform rich text field, we would like to present, as visible text within the field, a description of what would be considered details, like "Detail what is happening or not happening, any errors you receive and screenshots, and any troubleshooting steps you have taken so far." which the customer would overwrite with their own content.
SwethaSwetha (Salesforce Developers) 
Hi Pat,
Do you want to include this for a standard field? Do you have any customisation in place already?Thanks
Pat PowerPat Power
Any field, standard or custom, would be ideal
SwethaSwetha (Salesforce Developers) 
@Pat, If there is no custom code, then you can make use of Salesforce's out-of-the-box "help text".

Example: For account object, Clickpath: Setup> Object manger> Accounts> Fields& Relationships> select a field and populate helptext

User-added image

Related: https://help.salesforce.com/s/articleView?id=sf.customhelp_defining_field_level_help.htm&type=5

If you want the fields to be prepopulated with input placeholder, you will need to write custom code as this is not supported without code at the moment.
Please upvote this idea : https://ideas.salesforce.com/s/idea/a0B8W00000GdVmnUAF/allow-text-fields-to-have-placeholder-text-for-text-fields so that Salesforce product team can implement it in coming releases

Custom code approach: https://www.biswajeetsamal.com/blog/input-field-placeholder-in-visualforce-page/

If this information helps, please mark the answer as best. Thank you
Pat PowerPat Power
We have made use of Help Text but that depends on the customer to know to click/hover over that icon to be of any use. We're looking for a foolproof way to put the text in front of customers so they have no choice but to see it. Whether they simply ignore it is another conversation lol upvoting that Idea in the link provided. Thanks!
SwethaSwetha (Salesforce Developers) 
Got your point :) Considering your requirement, custom code is the only option.I've also checked if there are any appexchange apps that can help but din't find any.

Please consider closing this thread by marking answer as best if provided information helps. Thank you