Welcome, Guest

Conditional fields: simplify turn off
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Conditional fields: simplify turn off

Conditional fields: simplify turn off 1 year, 5 months ago #15779

Hello
I am using the conditional field on select-list, that is a great point and easy to use.
I just have one question regarding the "turn off" option. Having 20 option in my list but just one needed a conditional field, I am wondering if there a way to simplify the turn off code.
Explanation:
- for turn on, I code
turn on element autre_statut if statut is Autre

- for turn off, I code
turn off element autre_statut if statut is #case1|case2|case3|case4|case5|case6|case7 ...

Is there is way to just code something like:
turn off element autre_statut if statut is not Autre
?????
I try different text but did not find something working.
Thank you in advance
  • frlobe

Re: Conditional fields: simplify turn off 1 year, 5 months ago #16316

The ! before means 'NOT'.
Example: turn off element mytext if mycheckboxgroup is !somevalue

If you want to turn on when one of the values is true (OR):
turn on element mytext if mycheckboxgroup is #somevalue|someothervalue

If you want to turn on when all of the values is true (AND):
turn on element mytext if mycheckboxgroup is #somevalue;someothervalue
  • nononsense
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 1
Last Edit: 1 year, 5 months ago by nononsense.

Re: Conditional fields: simplify turn off 1 year, 5 months ago #16317

Hello
thank you for your answer.

I code the following
turn on element autre_statut if statut is AUTRE
turn off element autre_statut if statut is !AUTRE

If statut if on AUTRE, autre_statut is shown . But if I change statut from AUTRE to TEST, autre_statut is still shown and not hidden.
But if put this code
turn off element autre_statut if statut is #TEST1|TEST2|TEST3|TEST4

and if I change statut from AUTRE to TEST, autre_statut is hidden.

Any reason for this?
  • frlobe

Re: Conditional fields: simplify turn off 1 year, 5 months ago #17093

Hello

Does someone have an idea how to make the '!'-function work with selected lists? Seems it only works for radiobottons?
  • Ironhand
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0

Re: Conditional fields: simplify turn off 10 months ago #35074

Seems it only works for radiobottons?

really?
It's very bad
  • debugger
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0

Re: Conditional fields: simplify turn off 8 months, 2 weeks ago #39269

Hi, in what part are you guys putting that code? I need something similar...
  • dmendez12
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.35 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany