Hide fields in Customiser forms

  • 16 January 2023
  • 5 replies
  • 149 views

Userlevel 2
Badge +1

I would like a way to set fields to be hidden (in a similar way that Visibility Expressions can be used to show fields). 


5 replies

Userlevel 4
Badge +12

I don't think this is possible at the moment because the customiser doesn't accept ‘NOT EQUAL’ (as below) or conditional AND/OR expressions

$W("VISIBILITY-TEST")!="WANT2HIDE" 

If you want to show a field on 3 of 4 options then I think you have you create the hidden field 3 times. Adding specific, positive visibility expressions to each. 

 

It would probably make a great feature request though. It would get my vote.

Userlevel 3
Badge +11

Hi Both, 

Another one for the ideas area! log it there and we’ll see what every one else thinks about it. Looks like a good suggestion to me.

https://community.ifs.com/ideas

Cheers,
Robert

Userlevel 2
Badge +1

Hi Both, 

Another one for the ideas area! log it there and we’ll see what every one else thinks about it. Looks like a good suggestion to me.

https://community.ifs.com/ideas

Cheers,
Robert

Thanks, I have added

Userlevel 1
Badge +1

The attached is an approach I have used to base the visibility of one field based on the values selected in multiple custom fields. 

It is a workaround ‘for now’ for the issue of not being able to use logic in visibility expressions in the customizer.

Badge

The attached is an approach I have used to base the visibility of one field based on the values selected in multiple custom fields. 

It is a workaround ‘for now’ for the issue of not being able to use logic in visibility expressions in the customizer.

Thanks for the great suggestion would you explain it more ??

Reply