10 years ago
7
Topic

Hi everybody,

I'll try to explain it clearly : I created a form and a field inside as multiple choice. Inside I set up 3 entries :

TEXT1 = 1

TEXT2 = 2

TEXT3 = 3

1, 2 and 3 are category ID and the field storage goes to catid.

At this time, it's ok, I choose a textual value, and it define the cat id, so my items are classified correctly.

After that, depending of the categoory selected, I want to display some fields. So I use the conditional option [5] :

<< This field is visible WHEN "cat_field" is equal to 1 >>

Neither value or text allow the field to be displayed. I tired with 1, 2 or 3 and TEXT1, TEXT2 or TEXT3, but nothing works.

If I change the multiple field options and set only Text or Value, its works ! So it seems not possible to filter a value of a multiple field (with text and value) using conditional.

Is it a bug or an usual behaviour ?

Is there an other way to do that ?

Many thanks for your support,

Lionel

Get a Book for SEBLOD
10 years ago
6
Level 1

Hello Lionel,

Your problem is the same that mine. You can see my topic.

I reported the bug in tracker. 

Regards

10 years ago
5
Level 2

Hi Manu,

Thanks for your answer,

It seems a bit different in fact. You talk about multiple conditional states that are not working together. I noticed that too.

But here, in my case, I've got only ONE conditional state (isVisible) for ONE field. So we are not in the same context.

If this condition is based on a value from a field "Multiple / Radio" that include text AND value, the condition never match.

You may test with the example provided, and confirm me if it's the same on your side ?

Create a Field Multiple (Radio choice) with three entries (each one with text AND value)

Create another field (whatever you want) and give it one conditional state to be visible only for one of the value of the Radio field.

Tell me how to make it works ?.

Regards,

693 Posts
rpoy
10 years ago
1
Level 3

Hi Lionel,

Let me make sure we are talking about the same thing.  I set up the following:

Then under each of the text fields add the conditional:

Selecting the orange chevron will allow you to select from the options that you have defined in the Radio Field but will add the value automatically.

Is this how you have it set up?

thanks,

Randy

10 years ago
0
Level 4

Hi Randy,

I do use the orange chevron to set the value or type manually the value or the text of the radio field.

What choices have you set in the radio field ? Are there 3 choicies with both TEXT and VALUE (TEXT = XX)

I repeat, if I set only TEXT strings, the conditionnal state works using "isEqual (TEXT)" and if I set only values, the conditionnal state works using "isEqual (number)".

When I set both, it doesn't work. 

Can you reproduce this issue ?

Regards,

10 years ago
2
Level 3

Lionel,

I do that you ask me to try.

I don't understand like Randy, I follow what you say :

- one field radio with 3 selections (selection1, selection2, selection3)

- one field text that appears only if selection3 is ticked.

In edition mod, it works very well, but when I submit, it is not visible, also, I have always the text field selectionned.

I think you can specify in tab 2 a link or typography

Regards

10 years ago
1
Level 4

Yes, you are one the right way. Close to what I have.

But can you set up a text AND a value for each selection ? (selection1 = 1, selection2 = 2, selection3 = 3)

On my side, I get this issue even in edition mode, while creating an item.

Thanks all for your support,

Regards,

Lionel

10 years ago
0
Level 5

So, In edition mode, I uncheck the little box (with 1 ²) and I see my text.

If you check the box, you see also the last condition.

But change correctly the operator with OR and not AND (I think it is logic... and you had do)

Get a Book for SEBLOD