You need to sign in to do that
Don't have an account?
jmerrill8
Simple Trigger help
Very new to Salesforce here.
I have 2 multi-select fields in my Lead object called "States Worked" and "States Licensed".
I want to create a third field called "All States" which will include all options chosen for both "States Worked" and "States Licensed".
I was thinking I could create a trigger that would update "All States" with the data selected for the other two fields.
Can anyone help me get started with this?
Thanks!
Why do you think this is a Trigger?
I'm certainly open to other solutions if you have any recommendations.
I was thinking a trigger would fire on insert or update and would populate field 3 with the values from field 1 and 2.
Field 1: CT, MA, ME
Field 2: NY, PA, WY
Field 3: CT, MA, ME, NY, PA, WY
Any suggestions would be much appreciated.
Thanks!
I see now. I thought you were wanting a 3rd pick list which would only contain values from field 1 and 2 but that the user would then need to make the selection.
Yes you can do this with a trigger. I don't know how to deal with a multi pick list in apex as I've never used them. I suppose they are just like a list so you need to generate a new list for field 3 and populate it with the values from the list of field 1 and field 2.