CMS Development

redbranchmedia
Colaborador(a) | Parceiro Elite
Colaborador(a) | Parceiro 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 Avaliação positiva
1 Solução aceita
Reg
Solução
Colaborador(a) | Parceiro Elite
Colaborador(a) | Parceiro 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

Exibir solução no post original

3 Respostas 3
Reg
Solução
Colaborador(a) | Parceiro Elite
Colaborador(a) | Parceiro 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
Conselheiro(a) de destaque

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