SOLVED

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

Occasional 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 (Occasional Contributor)
Solution
=if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')