CMS Development

redbranchmedia
Colaborador | Partner nivel Elite
Colaborador | Partner nivel Elite

How to set up display conditions for a field dependent on a boolean field

resolver

I have a relatively simple resource module. I have a boolean field "This is a video block". If the field is checked, I want the "Video URL" field to appear. If it's not checked, I do not want the field to appear. 

 

The display conditions options available are: 

Is equal to, is empty, is not empty, is not equal to, custom regex. 

 

I've tried a number of these and assumed the "is not empty" would work, but it does not. It appears all the time. If I use "is empty" it never appears. Screen Shot 2019-05-22 at 11.10.39 AM.pngScreen Shot 2019-05-22 at 11.10.32 AM.png

 

How can I make this work? Thank you 

0 Me gusta
1 Soluciones aceptada
Reg
Solución
Colaborador | Partner nivel Elite
Colaborador | Partner nivel Elite

How to set up display conditions for a field dependent on a boolean field

resolver

You can use "Is equal to" and put "true" in the field. This will make the field only show when the toggle is checked on.

Reg Desgroseilliers
www.rdcoding.com

Ver la solución en mensaje original publicado

3 Respuestas 3
Reg
Solución
Colaborador | Partner nivel Elite
Colaborador | Partner nivel Elite

How to set up display conditions for a field dependent on a boolean field

resolver

You can use "Is equal to" and put "true" in the field. This will make the field only show when the toggle is checked on.

Reg Desgroseilliers
www.rdcoding.com
jcpux
Participante

How to set up display conditions for a field dependent on a boolean field

resolver

This text input should really turn into a true/false selector if the field in question is a boolean... or at least a tooltip reminder that boolean return "true"/"false". I always forget =\

Imunna add a feature request

Jsum
Asesor destacado

How to set up display conditions for a field dependent on a boolean field

resolver

@redbranchmedia @Reg ,

 

I find it odd that "is empty"/"is not empty" doesn't equate to true/false, but "is equal to" for true or false does works.

 

Need help? Hire Us Here