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
sekhar 131sekhar 131 

how to mandatory fields error throw message in the field side

User-added image
this image see the top of errors using apex message 
my requirement below the image  fiield error message
User-added image
 
Mandalapu BrahmanaiduMandalapu Brahmanaidu
Hi

 Please chcek the code below .

<apex:page standardController="Account" showHeader="false">
<apex:slds />
  <apex:form >
      Name:<apex:inputField value="{!Account.Name}" required="true"/>
      Site:<apex:inputField value="{!Account.Site}" required="true"/><br/>
      Industry:<apex:inputField value="{!Account.Industry}" required="true"/><br/>
      Phone:<apex:inputField value="{!Account.Phone}" required="true"/><br/>
      BillingStreet:<apex:inputField value="{!Account.BillingStreet}" required="true"/>
      <apex:commandButton value="Save" action="{!Save}"/>
  </apex:form>
</apex:page>

 
sekhar 131sekhar 131
Hi Mandalapu Brahmanaidu

my requrement is Mandatory field not give the data (null) it throw error message in the that field side or butome  display message 

 
Mandalapu BrahmanaiduMandalapu Brahmanaidu
Hi

  You want to display the error message with out clicking on a button is it and then you want to highlight the text box with red color at starting
 
sekhar 131sekhar 131
hi 
Not Standed field only Custome fields