How to hide the * for required fields

Sometimes it is annoying to see the '*' in front of a required field.
If a customer demands the '*' to be removed, you really have a problem !
It seems to be impossible to remove it and a lot of people say that it is.....................

But here is your solution.

If you put the following line of code in your stylesheet, the '*' will not be displayed !

.xi {
display: none;
}

For outlining everything, you can use the ussual stuff.

More to come

Comments

Anonymous said…
hi Luc,
thats a very useful tip.
I have page with af:form where I want to hide "*" on some fields.Can this be done at field level?
luc bors said…
Hi,

I'll be back in about one week !
I'm enjoying some private time with my family.
Aakar Gupta said…
i also want to hide it for a particular field only ?? How to do it ??
Anonymous said…
here is a blog entry with the solution of hiding * for specific fields: http://www.techartifact.com/blogs/2013/11/disable-the-symbol-of-the-required-field-of-the-label-of-inputtext.html#sthash.quSqXeFM.dpbs
Tokando said…
i tried to change the color of the * to red using this code

.xi {
color: Red;
}

but i did't work ...

what is the right code ?
Tokando said…
i tried to change the color of the * to red using this code

.xi {
color: Red;
}

but i did't work ...

what is the right code ?
Luc Bors said…
Depending on your ADF version you can use the following skinSelector:

.AFRequiredColor:alias

It only works with skyros Skin (according to documentation)

Popular posts from this blog

ADF 12.1.3 : Implementing Default Table Filter Values

ADF 12.2.x : Conditional Showing Message Instead of List of Values Popup

ADF 11g Quicky 3 : Adding Error, Info and Warning messages