function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ankushankush 

Map input text to Picklist

I am having a scenario where I need to map the Text value to picklist like below. Can some one guide me how to do it

On VF page Picklist values Enter Color radio button option a and radio button option B

 but if they want to enter any other color than this we give them input text to enter manually and we want to map that input text to this picklist in database. How can I do that?
Ankit AroraAnkit Arora
Description is not very clear, but I'll try. So what I understand is that you have a picklist with values of color names and some radio buttons from where user selects the color and you display it. Now you want user can also enter the color name and it must be matched to picklist value. You can basically user includes to match the value in picklist.

Let me know if it works.