Disable the symbol of the required field of the label of inputtext

Requirement – Disable the symbol of the required field of the label of inputtext
Solutions- add the following code in your css skin file

AFRequiredIcon:alias
{
    content:inhibit;
}

Note – It will disabled * icon entire application

Now if you want to hide * icon only for particular inputText

then add add the ‘styleClass’ attribute in inputText

<af:inputText label="First Name" id="it1" styleClass="requiredField" required="true"/>

In the css skin file, add a new class style as follows:

.requiredField span

{
  visibility: hidden;
}

happy learning with Vinay in techartifact

Vinay

I am an Oracle ACE in Oracle ADF/Webcenter. Sr Java Consultant-working on Java/J2EE/Oracle ADF/Webcenter Portal/ content and Hibernate for several years. I'm an active member of the OTN JDeveloper/Webcenter forum. Passionate about learning new technologies. I am here to share my knowledge. Give your views and suggestion on [email protected] .

More Posts - Website

Follow Me:
TwitterLinkedInGoogle PlusYouTube