You need to sign in to do that
Don't have an account?
anukarthi_nimmala
Pass Html input text value to apex controller
Hi,
Please someone tell me how to pass html input text value to my apex controller.PLease give me an example of doing so if possible .
Thanks and regards
Anu...
Hello Anu,
I also stuck on this kind issue, so I think you should try little bit of javascript in your code. Just look at the example:
In the above example Custom object(Employee_Detail__c) is used. The value inserted by the user is saved in these three variables and these variables can be used any where in the controller.
Hope this helps you? If so, please mark it solved.
Regards
Raju.
HI Raju,
Thanks alot for your reply, But in my scenario i want to pass the Uinput variable to apex controller.When iam trying to work with this example i could only pass inputtext values which ever u put in panel grid but i want to pass the variable in jscript function to apex controller.So please tell me how to do that.
As you see in the previous example the variable valueTwo can be used anywhere in the controller.
In this code the value of inputText is passed through variable from vf to controller.
Hope this helps you? If so, please mark it solved.
Regards
Raju.
hi anu,
what do u want to do getting the input values from page .do u want to save it in some object?or u want to pass it to another page?
Hi Krishna ,
Thanks for your support .Yes you are right i want to save the input values in to some customobject and that input value is html input value but not apex:input value.So please mtell me how could i do this.
Thanks and regards,
Anu.....
Hi,
Thanks for your reply, But i want to pass avalue from the html input tag. I mean to say i have an html input value in visualforce page now i want to pass that html input terxt value to controller as if u passing the apex:input value in the example given .So please help me how could i achieve this.
Thanks and regards,
anu...