open-forms icon indicating copy to clipboard operation
open-forms copied to clipboard

">", "<", "!=" cannot be used in templates.

Open LaurensBurger opened this issue 10 months ago • 1 comments

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.

LaurensBurger avatar Apr 16 '24 08:04 LaurensBurger