You need to sign in to do that
Don't have an account?

How to create your custom indicator for required field
I was wondering what will be the best way to create a custom indicator for required field.
Standard one always show Red color indicator , how to go about creating a different color indicator for VF page.
Is it through Image or Is is through style attribute? Iam not sure what is the best way to do
Standard one always show Red color indicator , how to go about creating a different color indicator for VF page.
Is it through Image or Is is through style attribute? Iam not sure what is the best way to do
If you only need to change the color of the indicator you can override the default CSS in vf page as follow:
.bPageBlock .requiredInput .requiredBlock {
background-color: #c00 !important;
}
If you need to do completely different styling then add some differernt style from css, modify style attribute of input field and handle validation in apex class.
Thanks