Hi ,
We have a visual force page for adding the products for an opportunity where
<apex:page standardController="OpportunityLineItem" extensions="ProductExtensionController" id="pg" tabStyle="Opportunity" showHeader="true"> <style type="text/css"> .longText { width:100px; } </style> <apex:form id="frm"> <!--Displays Error messages.---> <apex:pagemessages /> <apex:pageBlock id="pgBlock0"> <!--Display page to add products to oppurtunity from Cloud User Pricebook.---> <apex:pageBlockSection id="pgBlock1"> <apex:pageBlockTable value="{!CloudProducts}" var="pro1"> <apex:column > <apex:facet name="header">Product Name</apex:facet> <apex:outputText styleClass="longText" value="{!pro1.prodWrapper .Name}"> </apex:outputText> </apex:column> <apex:column > <apex:facet name="header">Quantity/Term</apex:facet> <apex:inputField value="{!pro1.oli.Quantity}" required="true"/> </apex:column> <apex:column > <apex:facet name="header">No.of Users</apex:facet> <apex:inputField value="{!pro1.oli.No_of_Users__c}" required="true"/> </apex:column> <apex:column > <apex:facet name="header">Price per user/month</apex:facet> <apex:inputField value="{!pro1.oli.Price_per_user_month__c}" required="true"/> </apex:column> <apex:column > <apex:facet name="header">Revenue Type</apex:facet> <apex:inputField value="{!pro1.oli.Revenue_Type__c}" required="true"/> </apex:column> <apex:column > <apex:facet name="header">Product Type</apex:facet> <apex:inputField value="{!pro1.oli.Product_Type__c}" required="true" /> </apex:column> </apex:pageBlockTable> </apex:pageBlockSection> <!--Display navigation buttons---> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> <apex:commandButton value="Save&More" action="{!saveMore}"/> <apex:commandButton value="Cancel" action="{!Cancel}"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
we want to display the helptext for the field "Product_Type__c" in the page, can someone help me how can we do this. I see some solutions saying to display as below:
<apex:pageBlockSectionItem helpText="{!$ObjectType.OpportunityLineItem.Fields.Product_Type__c.inlineHelpText}"/>
but not able to use this anywhere wherever i use i get the blank message whith no content.
Regards,
Prabhakar.