Forum Discussion

chanpion13's avatar
chanpion13
Copper Contributor
Jul 30, 2021
Solved

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')
  • RobElliott's avatar
    RobElliott
    Silver Contributor
    =if([$CampaignType] == 'Auto' || [$CampaignType] == 'Home', 'true', 'false')

Resources