guave/conditionalformfield-bundle

Conditional Form Field for Contao 5.0+

Installs: 60

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Type:contao-bundle

pkg:composer/guave/conditionalformfield-bundle

2.0.0 2026-01-22 06:57 UTC

This package is auto-updated.

Last update: 2026-01-22 06:59:54 UTC


README

Deprecated

This Repo is no longer maintained. Please use terminal42/contao-conditionalformfields

Conditional Form Field Bundle

This contao module allows you to set conditional fields in a for to hide or show based on a different field

Requirements

  • Contao 5.0+
  • PHP 8.1+

Install

$ composer require guave/conditionalformfield-bundle

Examples

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'