• bharath lagishetty
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
please help me to solve this when i enter the values and claic on save fomula expression error is coimng

<apex:page controller="harish">
  <apex:form >
  <apex:pageBlock >
  <apex:commandButton value="save" action="harik"/>
  <apex:pageblockSection >
  
  
  <apex:outputLabel value="fax"></apex:outputLabel>
  <apex:inputText value="{!fax}"/>
  <apex:outputLabel value="phone"></apex:outputLabel>
  <apex:inputText value="{!phone}"/>
  </apex:pageblockSection>
  </apex:pageBlock>
  </apex:form>
</apex:page>

class
public class harish {
 public string name{get;set;}
 public string fax{get;set;}
 public string phone{get;set;}
 
 public void harik(){
 lead ac=new lead();
 ac.fax=fax;
 ac.phone=phone;
 insert ac;
 }
}