You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{{field|Erledigt von|input type=tokens|default=current user|values from namespace=Benutzer|class=form-control}}}
It is working fine with the exception that if you remove the name from the tokens field and save the form with an empty field, the current user will be set in the template, though it should be empty.
If in the same form definition I remove |default=current user everything is working as expected. A name shown as token that you remove, saving an empty field results in the template getting no value for the field.
The text was updated successfully, but these errors were encountered:
krabina
changed the title
default=current user cannot be set up empty
default=current user cannot be empty
Nov 14, 2022
I have the following simple form field:
{{{field|Erledigt von|input type=tokens|default=current user|values from namespace=Benutzer|class=form-control}}}
It is working fine with the exception that if you remove the name from the tokens field and save the form with an empty field, the current user will be set in the template, though it should be empty.
If in the same form definition I remove
|default=current user
everything is working as expected. A name shown as token that you remove, saving an empty field results in the template getting no value for the field.The text was updated successfully, but these errors were encountered: