Skip to Content Skip to Menu

problem CB Conditional

  • nagneau
  • nagneau
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #238048 by nagneau
problem CB Conditional was created by nagneau
Hello,

My English is not terrible, I use google translation, sorry
In my application, people (para-medical profession) to register must select a location and a health zone (drop down field)
I installed CB conditionnal for when choosing a region, the list of health zones is reduced to those for the department. I have 5 departments, each department there are between 4 and 6 health zones.
In my first case, I put equal to department1 and show I select areas corresponding health in hide, I do not select the corresponding department 2 in condition 2 ...
My form only condition 5 works all the others apparently useless
Thank you to tell me what I did wrong set because I do not understand why it does not work.

cordially

En français
Bonjour,

Mon anglais n'étant pas terrible, j'utilise la traduction google, désolé
Dans mon formulaire d'inscription, les personnes (profession para-médical) pour s'inscrire doivent choisir un département et une zone de santé (champs drop down)
J'ai installé CB conditionnal pour que lorsque l'on choisi un département, la liste des zones de santé soit réduites à celles concernant le département. J'ai 5 départements, pour chaque département il y a entre 4 et 6 zones de santé.
Dans ma première conditions, je met égal à departement1 et dans show je sélectionne les zones de santé correspondante, dans hide, je sélectionne celle ne correspondant pas, département 2 dans la condition 2,...
Dans mon formulaire, seul la condition 5 fonctionne toutes les autres ne servent apparement à rien
Merci de me dire ce que j'ai mal paramétré car je ne comprend pas pourquoi cela ne fonctionne pas.

Cordialement
Last edit: 11 years 1 month ago by nagneau.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48681
  • Thanks: 8313
  • Karma: 1446
11 years 1 month ago #238076 by krileon
Replied by krileon on topic problem CB Conditional
Please see the below tutorial regarding CB Conditional usage.

www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs

Conditional matching is always 1:1. This means if your values are language strings then you need to match against the language string and disable translation for the value. Please see the below example of this.

Field Values:
_UE_VAL1
_UE_VAL2
_UE_VAL3
_UE_VAL4

Conditional:
FIELD Equal To _UE_VAL1


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • nagneau
  • nagneau
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
11 years 1 month ago #238092 by nagneau
Replied by nagneau on topic problem CB Conditional
I have viewed this tutorial and put Translate Value: disable.
Besides, if I only creates the condition 1, no problem it works fine but here is my problem, I have the fields departments with the following values

12 - AVEYRON
31 - HAUTE GARONNE
32 - GERS
46 - LOT
65 - HAUTES PYRENEES

and I field health sectors with the following values

AUCH
BAGNERES-DE-BIGORRE
CAHORS
CONDOM
CORNEBARRIEU
DECAZEVILLE
ESPALION
FIGEAC
GOURDON
LANNEMEZAN
L'ISLE-JOURDAIN
LOURDES
MILLAU
MURET
NOGARO
RODEZ
SAINT-AFFRIQUE
SAINT-CERE
SAINT-GAUDENS
SAINT-JEAN-LUNION
TARBES-VIC
TOULOUSE
VILLEFRANCHE-DE-LAURAGAIS
VILLEFRANCHE-DE-ROUERGUE

and I matches

12 - AVEYRON
DECAZEVILLE
ESPALION
MILLAU
RODEZ
SAINT-AFFRIQUE
VILLEFRANCHE-DE-ROUERGUE

31 - HAUTE GARONNE
CORNEBARRIEU
MURET
SAINT-GAUDENS
SAINT-JEAN-LUNION
TOULOUSE
VILLEFRANCHE-DE-LAURAGAIS

32 - GERS
AUCH
CONDOM
L'ISLE-JOURDAIN
NOGARO

46 - LOT
CAHORS
FIGEAC
GOURDON
SAINT-CERE
VILLEFRANCHE-DE-ROUERGUE

65 - HAUTES PYRENEES
BAGNERES-DE-BIGORRE
LANNEMEZAN
LOURDES
TARBES-VIC

individually if I put one condition for a department, no problem, but if I put 5 only the last condition works
65 - HAUTES PYRENEES
return property
BAGNERES-DE-BIGORRE
LANNEMEZAN
LOURDES
TARBES-VIC
but the 4 other conditions are not met

to see the form:

www.urgence-bronchiolite.fr/index.php/s-inscrire/registers

VERSION FRANCAISE

J'ai bien consulté ce tutoriel.
D'ailleur su je met la condition 1 seulement, pas de problème cela marche très bien mais voila mon problème, j'ai le champs départements avec les valeurs suivantes
12 - AVEYRON
31 - HAUTE GARONNE
32 - GERS
46 - LOT
65 - HAUTES PYRENEES

et j'ai le champ secteurs de santé avec les valeurs suivantes
AUCH
BAGNERES-DE-BIGORRE
CAHORS
CONDOM
CORNEBARRIEU
DECAZEVILLE
ESPALION
FIGEAC
GOURDON
LANNEMEZAN
L'ISLE-JOURDAIN
LOURDES
MILLAU
MURET
NOGARO
RODEZ
SAINT-AFFRIQUE
SAINT-CERE
SAINT-GAUDENS
SAINT-JEAN-LUNION
TARBES-VIC
TOULOUSE
VILLEFRANCHE-DE-LAURAGAIS
VILLEFRANCHE-DE-ROUERGUE

et j'ai les correspondances

12 - AVEYRON
DECAZEVILLE
ESPALION
MILLAU
RODEZ
SAINT-AFFRIQUE
VILLEFRANCHE-DE-ROUERGUE

31 - HAUTE GARONNE
CORNEBARRIEU
MURET
SAINT-GAUDENS
SAINT-JEAN-LUNION
TOULOUSE
VILLEFRANCHE-DE-LAURAGAIS

32 - GERS
AUCH
CONDOM
L'ISLE-JOURDAIN
NOGARO

46 - LOT
CAHORS
FIGEAC
GOURDON
SAINT-CERE
VILLEFRANCHE-DE-ROUERGUE

65 - HAUTES PYRENEES
BAGNERES-DE-BIGORRE
LANNEMEZAN
LOURDES
TARBES-VIC

individuellement si je met une seule condition pour un département, pas de problème, mais si je met les 5 seul la dernière condition fonctionne 65 - HAUTES PYRENEES renvoi bien
BAGNERES-DE-BIGORRE
LANNEMEZAN
LOURDES
TARBES-VIC

pour voir le formulaire :

www.urgence-bronchiolite.fr/index.php/s-inscrire/registers

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48681
  • Thanks: 8313
  • Karma: 1446
11 years 1 month ago #238156 by krileon
Replied by krileon on topic problem CB Conditional
The field value matching is a 1 to 1 match. If the field value is a language string then disable translations for the value to avoid it translating during matching. If the field is a multi-select type then be sure to use the Contains operators.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum