SOLVED

Re: Forms - Visibility rules use "and" operator only?

Go to solution
Karen_Vuong
Level 2

Forms - Visibility rules use "and" operator only?

I'm updating a form that needs to use multiple visibility rules for one field. Can you use "OR" as an operator when creating a visibility rule?

 

Example:

I have hidden form content that I want to show if [Field A] OR [Field B] are empty. 

 

It seems that creating more than one visibility rule is using "AND" operator logic. Are there any solutions where I can use "OR"?

Karen Vuong
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Forms - Visibility rules use "and" operator only?

Think you’re getting confused somehow. Visibility Rules do use OR as the implicit operator!

 

This set of VRs means Show Phone If (Last Name is Empty OR Email is Empty):

SanfordWhiteman_0-1711478927340.png

 

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Forms - Visibility rules use "and" operator only?

Think you’re getting confused somehow. Visibility Rules do use OR as the implicit operator!

 

This set of VRs means Show Phone If (Last Name is Empty OR Email is Empty):

SanfordWhiteman_0-1711478927340.png

 

Jo_Pitts1
Level 10 - Community Advisor

Re: Forms - Visibility rules use "and" operator only?

I was just experimenting with this, and about to post.

 

My gut feel is that @Karen_Vuong you were doing this 'back to front' and trying to hide the field under certain circumstances?  

 

@SanfordWhiteman is completely correct.  The show rules are implicitly 'or'.

Karen_Vuong
Level 2

Re: Forms - Visibility rules use "and" operator only?

Thanks @SanfordWhiteman and @Jo_Pitts1 . When reviewing Marketo Docs for visibility rules I couldn't find the definition of the operator to be "OR" vs "AND" so it wasn't clear on how the logic worked.

If the operator is only "OR" then that is exactly what I need. 

Karen Vuong