Dec 15, 2022 04:59 AM
Hi!
I have a single select field with two campaign options: Paid Media and Email Nurture. I am trying to create a name field that would concatenate different values, depending on the selected option. I wrote the following line, which is not accepted.
IF({Campaign Type} = "Paid Media", "CONCATENATE{Campaign Tactics}, " — ", {Asset}, " — ", {Webpage}", IF({Campaign Type} = "Email Nurture", "CONCATENATE{Campaign Tactics}, " — ", {Steps}, " — ", {Persona}"))
Would appreciate any suggestions on how to write this correctly and make it work. Thank you!
Solved! Go to Solution.
Dec 16, 2022 08:58 AM
Using the formula below, I was able to concatenate different single line text fields depending on the single select item. I would suggest
IF({Campaign Type}="Paid Media", CONCATENATE(First, " - ", Third), IF({Campaign Type}="Email Nurture", CONCATENATE(Second, " - ", Third), " "))
Dec 15, 2022 09:35 AM
It looks like you have some quotation marks where you need parentheses and you’re missing the final ‘value if not true’ condition. The formula below will give a blank if Campaign Type is neither Paid Media or Email Nurture.
IF({Campaign Type} = "Paid Media", CONCATENATE({Campaign Tactics}, " — ", {Asset}, " — ", {Webpage}), IF({Campaign Type} = "Email Nurture", CONCATENATE({Campaign Tactics}, " — ", {Steps}, " — ", {Persona}), “ “))
Dec 16, 2022 03:25 AM
Hi! And thanks for the reply! I tried the formula above but still not working.
Dec 16, 2022 05:47 AM
Can you post a screenshot or provide a read-only link with sample data? That would help trouble-shoot.
Dec 16, 2022 08:58 AM
Using the formula below, I was able to concatenate different single line text fields depending on the single select item. I would suggest
IF({Campaign Type}="Paid Media", CONCATENATE(First, " - ", Third), IF({Campaign Type}="Email Nurture", CONCATENATE(Second, " - ", Third), " "))
Jan 06, 2023 08:26 AM
This works! Big thanks! 🙂