open-forms
open-forms copied to clipboard
">", "<", "!=" cannot be used in templates.
Product versie / Product version
2.5.x - 2.6.3
Omschrijf het probleem / Describe the bug
mentioned: https://open-forms.readthedocs.io/en/latest/manual/templates.html?highlight=sjabloon#voorwaardelijke-weergave
The operators cannot be saved, the form will report a syntax error in the component:
{% if somevar < 100 %}
The component "Text Field" (with key "textField") has a problem in the field "defaultValue": There are template syntax errors in the expression.
Made sure the "somevar" is an actual number. tested with both float and int and a "number" component.
the "==" does work however.