Skip to content

guavestudios/ConditionalFormFieldBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 4.9+ (tested up to 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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages