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
ramesh kalluru 1ramesh kalluru 1 

add help text for opprtunity

  • Text – Required.
  • Length of Opportunity should be 40 or less characters.
  • Add Help Text with the following message:
Opportunity Name must be 40 characters or less.  Please refrain from using special characters in the name
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Ramesh, I Hope it will be helpful.

BestRegards
RahulKumar
Laxman Vattam 26Laxman Vattam 26
Help text is not yet available in lightning. If you are using VF pages for your opportunity create and want to add help text, you can achieve by using below sample logic:

Sample code to achieve it:
VF Page:
<div class="slds-form-element">
        <label >Test Label</label>
         <c:LightningHelpText helpText="
                  {!$ObjectType.Opportunity.fields.TestField__c.InlineHelpText}"/>
               <div class="slds-form-element__control">
                                <apex:inputField value="{!Opp.TestField__c}" styleClass="slds-input" id="TestId"/>
                                            
               </div>
 </div>
VF Component:
<apex:component selfClosing="true">
    <apex:attribute name="helpText" description="Help Text" type="String" required="true"/>
    <div class="slds-form-element__icon slds-align-middle">
        <img src="{!$Resource.CustomUX + '/icons/utility/info_60.png'}"  alt="" class="lightning-helpicon" style="width:15px;height:15px;"
               data-lightning-helptext="{!helpText}"/>                            
    </div>
</apex:component>