SOLVED

Need help with a quick snippet of code for the conditional formula for showing/hiding fields

Copper Contributor

hi!

 

i have this code and it works. When the campaign type is set to auto, this field will be visible.

 

=if([$CampaignType]== 'Auto', 'true', 'false')

 

I want to it so that if the campaign type is Auto OR Home it'll appear. I tried the below but it doesn't work.

 

=if([$CampaignType]== 'Auto' || 'Home', 'true', 'false')

2 Replies
best response confirmed by chanpion13 (Copper Contributor)
Solution
=if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')
1 best response

Accepted Solutions
best response confirmed by chanpion13 (Copper Contributor)
Solution
=if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')

View solution in original post