CMS Development

redbranchmedia
投稿者 | Elite Partner
投稿者 | Elite Partner

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

解決

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 いいね!
1件の承認済みベストアンサー
Reg
解決策
投稿者 | Elite Partner
投稿者 | Elite Partner

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

解決

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

元の投稿で解決策を見る

3件の返信
Reg
解決策
投稿者 | Elite Partner
投稿者 | Elite Partner

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

解決

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
参加者

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

解決

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
キーアドバイザー

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

解決

@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