You need to sign in to do that
Don't have an account?
Oldwen Adriano
Pass drop down list value to Apex code
I am trying to get the selected value from my drop down list on my Visual Force page.
Here is my page code:
Here is my Apex code:
What I would like to do is something simple like this:
public myFunction()
{
string myDDLvalue = get the DDL value
use my DDLvalue
}
----------------------------------------------
Any help is deeply appreciated!!
Here is my page code:
Here is my Apex code:
What I would like to do is something simple like this:
public myFunction()
{
string myDDLvalue = get the DDL value
use my DDLvalue
}
----------------------------------------------
Any help is deeply appreciated!!
Can you please elaborate a little more on your response? Can you give me an example of what you are instructing me to change? I am not completely clear on what you're saying.
Thank you very much,
OA
However, your Countries property should be a string, not a list of strings, as the user can only select a single value from the list. Once you have changed this, your action method can access the countries property and the user's selection will be present.