Welcome, Guest
  • Page:
  • 1

TOPIC: Conditional fields: simplify turn off

Conditional fields: simplify turn off 1 year, 9 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, 9 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: 25
  • Karma: 1
Last Edit: 1 year, 9 months ago by nononsense.

Re: Conditional fields: simplify turn off 1 year, 9 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, 8 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 1 year, 1 month 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 12 months 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.58 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint