Forum Discussion
chanpion13
Jul 30, 2021Copper Contributor
Need help with a quick snippet of code for the conditional formula for showing/hiding fields
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')
- =if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')
- RobElliottSilver Contributor=if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')
- chanpion13Copper Contributorbrilliant. it worked.