Hello! I need to add a condition in the text field.
I want to get something like:
{{ text_field('test', 'class': 'input w-full border', 'value': contract.totalPrice|default(""), 'required': (contract.id is not empty) ? false : true) }}
but it does not work. there is some solution?