nested conditions
-
This plugin works with more than two levels of depth? I have created a structure with three nested levels, (category, subcategory and product) and it does not work well, when I change category the products of the previous one remain visible.
-
yes, it should work. I have an example on the website that has 10 levels of nesting.
Could I pass the link to you by private mail? I must be doing something wrong.
just share a small piece of code that isn’t working for you. free plugin support is something everyone should benefit from, so I will only answer question about the plugin on this forum.
here’s the example: http://bdwm.be/wpcf7cf/questionnaire-2/
link to test: http://pruebas.laleonera.com/formulario/
source code of the form:
_______________________________________________________
<p> Escoja una aplicación <br />
[select aplicacion “” “industria Alimentaria” “Industria de bebidas” “Industria de defensa” “Industria de petroleo y gas” “Industria de Pinturas y barnices” “Industria farnaceutica” “Industria Nuclear” “Industria Química” “Servicios de emergencias”]</p>
<p> Categoría <br />
[select categoria “” “BARRILES” “CONTENEDORES PARA ALMACENAMIENTO” “SISTEMAS PARA CONTENEDORES” “REPUESTOS Y ACCESORIOS” “IBCs” “CONTENEDORES CISTERNA ISO” “BOTELLAS DE GAS Y GLP”] </p>[group grsubsiscon]
<p>Subcategoría <br />
[select siscon “” “VÁLVULA CÓNICA” “VÁLVULA DE MARIPOSA”] </p>
[/group][group grprvalcon]
<p>Producto <br />
[select prodvalcon “” “BPK2. VALVULA CÓNICA” “BPK3. VALVULA CÓNICA” “BPK4. VALVULA CÓNICA”] </p>
[/group][group grprvalmar]
<p>Producto <br />
[select prodvalmar “” “VALVULA DE MARIPOSA PARA BP/BPO”]</p>
[/group][group grsubibcs]
<p>Subcategoria <br />
[select prodibcs “” “IBCs PARA LÍQUIDOS” “IBCs PARA SÓLIDOS A GRANEL” “RECIPIENTES A PRESIÓN” “SOLUCIONES IBCs PERSONALIZADAS”]</p>
[/group][group grpibcliq]
<p>producto <br />
[select prodibcliq “” “LTP. CONTENEDOR CÚBICO” “TCS. CONTENEDOR VERTICAL” “ASC. BEI. CONTENEDOR ASÉPTICO CLIMATIZABLE” “ASC.CONTENEDOR ASÈPTICO” “IBCz-LO. CONTENEDOR CILÍNDRICO” “IBCz. CONTENEDOR CILÍNDRICO” “ZBEI. CONTENEDOR CLIMATIZABLE” “MeterCUBE” “TCL. CONTENEDOR HORIZONTAL” “TP. CONTENENDOR CÚBICO”]
</p>
[/group][group grpibcsol]
<p>producto <br />
[select prodibcsol “” “BP. CONTENEDOR PARA MATERIALES A GRANEL” “BPO. CONTENEDOR PARA MATERIALES A GRANEL” “LNB. CONTENEDOR FARMACEÚTICO”]
</p>
[/group][group grpibcrecip]
<p>producto <br />
[select prodibdrecip “” “CONTENEDOR PARA MERCANCIAS PELIGROSAS” “RECIPIENTE A PRESIÓN”]
</p>
[/group][group grpbarril]
<p>producto <br />
[select prodbarr “” “BARRILES EURONORM” “BARRILES DIN” “BARRILES US STANDARD (BBL)” “BARRILES SLIM” “BARRILES CON AROS DE CAUCHO” “CASKS DE ACERO INOXIDABLE” “BARRILES PARA VINO” “BARRILES PARA ACEITE”]
</p>
[/group]<p>Nombre *<br />
[text* nombre] </p>
<p>Apellidos <br />
[text apellidos] </p>________________________________________
and this is the structure of conditional fields
__________________________________________________________
if [prodibcs] equals “RECIPIENTES A PRESIÓN” then show [grpibcrecip]
if [prodibcs] equals “IBCs PARA SÓLIDOS A GRANEL” then show [grpibcsol]
if [prodibcs] equals “IBCs PARA LÍQUIDOS” then show [grpibcliq]
if [siscon] equals “VÁLVULA DE MARIPOSA” then show [grprvalmar]
if [siscon] equals “VÁLVULA CÓNICA” then show [grprvalcon]
if [categoria] equals “IBCs” then show [grsubibcs]
if [categoria] equals “SISTEMAS PARA CONTENEDORES” then show [grsubsiscon]
if [categoria] equals “BARRILES” then show [grpbarril]
___________________________________________________________Thanks in advance for your support
Any suggestions about this? I’d really appreciate any help.
It’s not clear to me what you are trying to do. You are not nesting your groups in any way..
Could you set up a small test in English, with a minimum of fields?
Hi Jules,
I have been doing two simplified versions in English.http://pruebas.laleonera.com/formulario-version-1/
with conditions only for category and subcategory level. It works fine, the intention is that you understand the concept of the form.http://pruebas.laleonera.com/formulario-version-2/
With added condition for the third level, product. This is where the error occurs.
It’s all documented on the pages themselvesAgain, thank you for your cooperation.
Here is the code:
____________________________________________
<p> Category <br />
[select category “” “LEVEL21” “LEVEL2” “LEVEL3” “LEVEL4” “LEVEL5” “LEVEL6” “LEVEL7”] </p>[group sublevel1]
<p>Subcategory <br />
[select sublevel1 “” “LEVEL11” “LEVEL12”] </p>
[/group]
[group sublevel3]
<p>Subcategory <br />
[select sublevel3 “” “LEVEL31” “LEVEL32”] </p>
[/group]
[group sublevel31]
<p>Product <br />
[select sublevel31 “” “LEVEL311” “LEVEL312” “LEVEL313”]
</p>
[/group]
[group sublevel32]
<p>Product <br />
[select sublevel32 “” “LEVEL321”]
</p>
[/group]
[group sublevel5]
<p>Subcategory <br />
[select sublevel5 “” “LEVEL51” “LEVEL52” “LEVEL53” “LEVEL54”] </p>
[/group][group sublevel51]
<p>Product <br />
[select sublevel51 “” “LEVEL511” “LEVEL512” “LEVEL513” “LEVEL514”]
</p>
[/group]
[group sublevel52]
<p>Product <br />
[select sublevel52 “” “LEVEL521” “LEVEL522” “LEVEL523”]
</p>
[/group]
[group sublevel53]
<p>Product <br />
[select sublevel53 “” “LEVEL531” “LEVEL32” ]
</p>
[/group]
____________________________________________Hi, Jules,
Have you had a chance to see anything about this issue?Solved, thank you
good to hear!
The topic ‘nested conditions’ is closed to new replies.