You need to sign in to do that
Don't have an account?
Not able to retrieve the values from the selectList into javascript
Hi I am suppose to instantiate sobject dynalically based on the selected parameter. Please suggest the solution based on the given scenario.
I am having two dependant <apex:selectlist> components.
upon the selection of the value of the selectList1 the values in the second picklist are getting populated. Here I am using <apex:actionsupport> for rerendering the second selectList.
Now I want to retrieve the selectlist values into javascript. I am able to retrieve the values of first picklist but not the second list since it is dynamically populated from ajax response.
The reason I want to retrieve the values into javascript is I have to instantiate teh custom based on the selected values. This cannot be done using Apex controller. In apex we cannot instantiate objects dynamically based on the parameter like in ajax new sforce.SObject("Account");
Thanks in Advance
Joseph