Play Games

Search This Blog

Saturday, January 2, 2016

How to change required symbol colour in Visualforce Page

Visualforce Page :
<apex:page standardController="Account">
    <style>
    .requiredBlock {
        background-color: yellow !important;
    }
    </style>
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection title="Account Information" collapsible="true">
                <apex:inputField value="{!account.name}" required="true"/>
                <apex:inputField value="{!account.type}" required="true"/>
                <apex:inputField value="{!account.Industry}" required="true"/>
                <apex:inputField value="{!account.rating}" required="true"/>
            </apex:pageBlockSection>
            <apex:pageblockButtons ><apex:commandButton value="Save" action="{!save}"/></apex:pageblockButtons>
        </apex:pageBlock>
    </apex:form>
 </apex:page>
Output :

No comments:

Post a Comment