You need to sign in to do that
Don't have an account?
Chandra babu 2
How to ADD the piclist Value?
pls anyone Help.
i am creted custom picklist on UI page values there apple, banana,orange,
Now my questios is i am giving input test box another value like water million.
water million is add the custom picklist.how to write the code in vf page.pls help me.
i am creted custom picklist on UI page values there apple, banana,orange,
Now my questios is i am giving input test box another value like water million.
water million is add the custom picklist.how to write the code in vf page.pls help me.
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('apple', 'apple'));
options.add(new SelectOption('banana', 'banana'));
Then you can create new function add to add new value like below
public pageReference addNewValue()
{
options.add(new SelectOption('million', 'million'));
return null;
}
Please let us know if this will help u