179 Posts
carin
7 years ago
7
Topic

I need to display/hide a text field based on the values of a select field. It needs to show on the first 3 values and to hide on the other 10 values. When I make

13 conditional groups only the last group triggers hiding the text field. What is wrong with the others there? Or is there even a better approach than setting up 13 groups?

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
1
Level 1

You should put one conditional on each of 13 fields, not 13 on one field.

179 Posts
carin
7 years ago
0
Level 2

I do not have 13 fields. I have 1 field with 13 values.

4229 Posts
Kadministrator
7 years ago
4
Level 1

Then you approach is correct. Perhaps you forgot to untick 2 that enables reverse behaviour and can cause confusion with mutiple groups. 

If this does not help post a screen shot of your conditionals.

179 Posts
carin
7 years ago
3
Level 2

As I said, nothing happens in the frontend when the user sets the value of the radio group to the first value, only the last on (here the second one) triggers the "visible", same for values that should hide that field - only the last one triggers.

Next question: Why does the trigger not work on the field type "div"? My div wraps a group of fields so I would not have to condition each single field.

4229 Posts
Kadministrator
7 years ago
2
Level 3

Thread title says this is about onditional on values from SELECT, those work ok in my experience. 

But now you you are saying values come from radio field - I have tested this and it indeed does not work correctly.

179 Posts
carin
7 years ago
1
Level 4

True, sorry about the confusion. I changed the title to "radio". D

Do I need to file a bug or is that on your list already? What can I do as an alternative until this is fixed?

4229 Posts
Kadministrator
7 years ago
0
Level 5

Probably you need to submit a bug, you can search in the bug list. As a workaround you could change your radio to select.

Get a Book for SEBLOD