I need to update a picklist field (contains list of month from January to December )value with a text field that holds correct month value. could you please help me with the correct syntax? thanks
I need to update a picklist field (contains list of month from January to December )value with a text field that holds correct month value. could you please help me with the correct syntax? thanks
Best Answer
You can set a Picklist value to a String inside a Trigger (doesn't even have to match the available values -- though you might want to validate it before setting).
Inside a before insert/update trigger you could do the following (assuming this is an Account):