+ Start a Discussion
SF DakshendraSF Dakshendra 

help me the visual code

help me the visual page code
KbhaskarKbhaskar
<apex:page standardController="use your controller" >
    <apex:form>
    <apex:inputField value="{!First Name}" />
<apex:inputField value="{!lastName}" />
<apex:inputField value="{!Email}" />
<apex:inputField value="{!phone}" />
<apex:selectOptions value="{!select state}"/>
   <apex:commandButton value="send" action="{!send}" />
    </apex:form>
</apex:page>

 
SF DakshendraSF Dakshendra
Hi i need the background colours and * mark before fields how can i get that
Thanks
KbhaskarKbhaskar
<apex:page>
               <style>
                     .bPageBlock {
                                background-color: black;
                     }
               </style>
               <apex:form>
                       <apex:inputField value="{!First Name}" />
<apex:inputField value="{!lastName}" />
<apex:inputField value="{!Email}" />
<apex:inputField value="{!phone}" />
<apex:selectOptions value="{!select state}"/>
   <apex:commandButton value="send" action="{!send}" />
                </apex:form>
</apex:page>

I hope it works
SF DakshendraSF Dakshendra
Hi bhaskar  thanks and when i click on send button it saved in account when i enter same name it takes.. i need i dont find any duplicate names so help me the controller
SF DakshendraSF Dakshendra
How to write a  code for not finding duplicate firstname help the controller
Muba SFDCMuba SFDC
<apex:page standardStylesheets="true" sidebar="false" standardController="your controller">
    <style>
       	table
        {
        background-color:#333333;
        }
        tablerow
        {
        background-color:grey;
        }
        span
        {
        color:red;
        }
        th
        {
        color:White;
        font-size:medium;
        }
    </style>
    <apex:form >
        <apex:pageBlock>
    <table>
        <th>Contact Sales Rep</th>
        <tr><td><span>*</span><apex:inputField value="{!your controller.firstname}" required="yes" style="background-color:#808080" html-placeholder="First Name" /></td></tr>
        <tr><td><span>*</span><apex:inputField value="{!your controller.lastname}" required="yes" html-placeholder="Last Name" style="background-color:#808080"/></td></tr>
        <tr><td><span>*</span><apex:inputField value="{!your controller.Phone}" required="yes" html-placeholder="Phone" style="background-color:#808080"/></td></tr>
        <tr><td><span>*</span><apex:inputField value="{!your controller.email}" required="yes" html-placeholder="Email" style="background-color:#808080"/></td></tr>
        <tr><td><span>*</span><apex:inputField value="{!your controller.email}" required="yes" html-placeholder="Email" style="background-color:#808080"/></td></tr>
<tr><td><span>*</span><apex:inputField value="{!your controller.Company}" required="yes" html-placeholder="Email" style="background-color:#808080"/></td></tr>
         <tr><td><apex:commandButton value="Send" action="{!Send}"  /></td></tr>
        </table>
            </apex:pageBlock>
        </apex:form>
</apex:page>