• ajay hada 9
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I create a form in visualforce page and create force.com website. At force.com submit button is showing but input filed not showing. please provide me solution

I create a table mytest__c and there is name field in table

i want to save input filed value in name field . so please help me . i create vf page and apex class for this

i create a vf page :

<apex:page controller="myClassController">
    <apex:form >
        <apex:inputField value="{! mytest1.Name}"/>
        <apex:commandButton value="Save" action="{! Save}"/>
    </apex:form>
</apex:page>

I create apex class is as fellow :

public class myClassController {
    public mytest__c mytest1{get;set;}
    public mytest__c mytest() {
        mytest1 = new mytest__c();
        return mytest1;
    }
    public PageReference Save(){
        //system.debug(mytest1);
        mytest1 = new mytest__c();
        insert mytest1;
        return null;
    }

}

 

So provide me solution

 

I create a table mytest__c and there is name field in table

i want to save input filed value in name field . so please help me . i create vf page and apex class for this

i create a vf page :

<apex:page controller="myClassController">
    <apex:form >
        <apex:inputField value="{! mytest1.Name}"/>
        <apex:commandButton value="Save" action="{! Save}"/>
    </apex:form>
</apex:page>

I create apex class is as fellow :

public class myClassController {
    public mytest__c mytest1{get;set;}
    public mytest__c mytest() {
        mytest1 = new mytest__c();
        return mytest1;
    }
    public PageReference Save(){
        //system.debug(mytest1);
        mytest1 = new mytest__c();
        insert mytest1;
        return null;
    }

}

 

So provide me solution