You need to sign in to do that
Don't have an account?
Chris987654321
Remove the Required Information from a <apex:pageblocksection>
Is it possible to remove the Required Information part on a Visual Force page? When you add a <apex:pageblocksection> it automatically puts a line that says Required Information on the first pageBlockSection. I want to remove it because I read that you cannot easily put that red line on custom text fields like <apex:outputText>. So I didn't want to confuse the user by saying that the red line denotes a required field.
Is the "mode" of the PageBlock set to "edit"? If so, you can try switching it to "detail" to see if that gets rid of the required legend thing. Otherwise, a quick and dirty hack to put the red line on an input element (like input text) is:
All Answers
Is the "mode" of the PageBlock set to "edit"? If so, you can try switching it to "detail" to see if that gets rid of the required legend thing. Otherwise, a quick and dirty hack to put the red line on an input element (like input text) is:
Hello;
If you want to show your own field as a required field(visually) you can wrap your component with <div> s as below.
For an example following <apex:inputText/> looks as a required field with red left line.
if you want to remove the red line you can do it by adding the following code to your VF page and by changing the "background-color" to the color of your page block.
Thank you very much. I was actually looking for a way to put the red line on my field. That worked great.
if you do actually want to remove the required info block you can simply use