You need to sign in to do that
Don't have an account?
set value of Apex InputTextArea and pass it back to controller class
Hi,
I have a standard controller and an extension class. I have a lookup filed City__c on my V page. I have another filed on my VF page as 'Selected cities'. This is apex TextArea field. And finally I have an apex command button as 'Select'
I would like to write a function in the controller class which does the below-
1. when I click on 'Select' button it adds the currently looked up value to the 'Selected cities' InputTextarea control.
2. Each new value is added on a separate row
3. When I click on 'Save' these values are passed back to my controller class where I would use them for further calculation.
I have got various pieces together however I need help with the below-
- A function which sets value of Apex InputTextarea while retaining the existing text
- How to pass the current value back to my controller class
I don't know if using Apex parameters and List contorl would be a good idea??
Any help is much appreciated.