guave / conditionalformfield-bundle
Conditional Form Field for Contao 4.13+
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 1
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.13
Requires (Dev)
- doctrine/doctrine-cache-bundle: ^1.3
- php-http/guzzle6-adapter: ^1.1
- php-http/message-factory: ^1.0.2
- roave/security-advisories: dev-latest
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2024-12-12 07:03:40 UTC
README
This contao module allows you to set conditional fields in a for to hide or show based on a different field
Requirements
- Contao 4.13+
- PHP 7.4 or 8.0+
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'