conditionalformfields extension for Contao Open Source CMS; Display form fields based on conditionis!

2.3.3 2020-11-28 09:48 UTC

This package is auto-updated.

Last update: 2021-11-28 11:49:13 UTC


Allows you to display a form field based on a condition which allows you to do something like "only display the field when value of field 'foo' is 'bar' and 'bla' is 'yes'".

$foo == 'bar' && $bla == 'yes'

You can also check the array (e.g. multiple checkboxes or select menu):

in_array('bar', $foo)

To validate a single checkbox simply compare its value:

$foo == '1'

Make sure jQuery is loaded for this to work.