<commit_before>contao-conditionalformfields
============================

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'
```<commit_msg>Add note for upgrade version 3 (#61)<commit_after>contao-conditionalformfields
============================

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'
```

### Note for Version 3
The field names had a prefix `$` until version 3 - this is no longer necessary.
When updating to version 3, the conditions are automatically adjusted.
{'fraction_non_alphanumeric': 0.1605902777777778, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 4.543269230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6042536', 'n_tokens_mistral': 353, 'n_tokens_neox': 327, 'n_words': 160}