Hi,
Maybe this is a dumb question but I’ve had issues trying to get the current date in a form.
First I create a variable and I call it “currentDate” as this JS expression:
return new Date();
Then I put a widget (text, input, title, etc) with this value.
Today is {{ currentDate | Date }}
Then I try the form.
When the form runs, it enters on an infinite loop, It always refresh the variable.
I’ve tried solve this using a condition (if variable is null -or undefined- get date else get the current value…) but this does not work.
Well I hope you can help me, thanks in advance.