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
BinishBinish 

How to set Red Bar on Mandatory field for "Name" Field in Visual Force Input Field form.

Hi,

 

I want to put a Red Bar (|) on Input Field which is a Standard Field (Name) of a Custom Object in Visual Force user input form page.

 

This Red Bar is appearing on the other Mandatory Custom fields which is not coming for Standard Field (Name Field) which is a Text Box.

 

Could you please help me?

 

Thanks

Binish Kumar

amar joshiamar joshi

  put the Reuired atribut as true

 

 

<apex:inputfield value="{!opportunity.StageName}" Required="True"/>