+ Start a Discussion
PuranKishorePuranKishore 

how to access input text values in visualforce page

ManjunathManjunath

Hi,

Create an property in the controller and access it in vf page.

Ex :

<apex:page controller='InputTextClass' >

<apex:form>

<apex:inputText value="{!inputValue}" id="theTextInput"/>

<apex:form>

<apex:page>

 

and in controller

Class InputTextClass{

    public string inputValue{ get; set; }

    public InputTextClass(){

     inputValue='hello';

    }

}

 

Regards,