function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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,