• Maddy6161
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 12
    Questions
  • 8
    Replies
City Field             Country Field

Pune                    India

Formula Filed : PUNIN            like this
Without using Sites Force.com
User-added image

With Sites Force.com
User-added image
<!--Page-->
<apex:page standardController="Lead" extensions="contollertest">
  <apex:form >
    <apex:pageblock id="pgb">
    <apex:pageBlockButtons >
        <apex:commandButton value="edit" action="{!editProcess}" rendered="{!Not(isEdit)}" reRender="pgb"/>
        <apex:commandButton value="save" action="{!save}" rendered="{!isEdit}" reRender="pgb"/>        
    </apex:pageBlockButtons>
       <!-- Display Account related Contacts -->
       <apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!Not(isEdit)}">
       <apex:commandButton value="save" action="{!save}"/>
         <apex:column value="{!val.Que1__c}"/>
         <apex:column value="{!val.Que2__c}"/>
         <apex:column value="{!val.Que3__c}"/>
       </apex:pageBlockTable> 
        <apex:outputPanel rendered="{!Not(isEdit)}">
           <apex:commandButton action="{!addQuestion}" value="Question" reRender="pgb"/>
       </apex:outputPanel>
        <apex:pageBlockTable value="{!lstQuestion}" var="val" rendered="{!(isEdit)}">
         <apex:column headerValue="Q.What is budget?">
             <apex:inputField value="{!val.Que1__c}"/>
         </apex:column>
          <apex:column headerValue="Q.When do you want?">
             <apex:inputField value="{!val.Que2__c}"/>
         </apex:column>
         <apex:column headerValue="Q.Would like Video?">
             <apex:inputField value="{!val.Que3__c}"/>
         </apex:column>
       </apex:pageBlockTable> 
    </apex:pageblock>
  </apex:form>
</apex:page>
 
Account : Maddy  - drop-down filed when i selected Maddy i want to retrive Fax, Phone, Website fields will be showned automatically

Fax:  ______________  these field automatically come when i select account name from dropdown
Phone:_____________
Wesite:_____________