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
DcoderDcoder 

How to show the Required fields marked with red '*' rather than the red '|' icon?

Hello,

 

Could you plaese help me with this. We need to change the display of required fields to have red '*' rather than the red '|' icon. This needs to be done with all standard and visualforce pages. Any suggestions please.

 

 

Thanks!

 

Best Answer chosen by Admin (Salesforce Developers) 
Cool_DevloperCool_Devloper

Well ... i am afraid :(

If you use, "inputfield" then automatically it generates the red bar!

And if you dont use that tag, then you will have to do it the custom way. Try searching the forums/wiki if you get any solution for this. Do, post back if yes :)

Cool_D

All Answers

Cool_DevloperCool_Devloper

You will have to use custom labels using outputLabel/ouputText!

Not sure if that's a gr8 idea though, as it would require change on all pages :(

Cool_D

DcoderDcoder

Yes, that is too much effort, as just to change the red line to red asterisk, we need to change all std pages to VF pages.

 

I think, there should be some way in set-up to change it.

 

wht say?

Cool_DevloperCool_Devloper

Well ... i am afraid :(

If you use, "inputfield" then automatically it generates the red bar!

And if you dont use that tag, then you will have to do it the custom way. Try searching the forums/wiki if you get any solution for this. Do, post back if yes :)

Cool_D

This was selected as the best answer
DcoderDcoder

After looking everywhere, I posted this on board myself.

 

I have also submitted as an idea

 

http://ideas.salesforce.com/article/show/10098660/Red_line_for_Required_fields_can_be_changed_to__if_needed

 

 

plz do promote  :smileyhappy: