Replies: 2 comments
-
|
you can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I can't thank you enough for responding. But, please, where do I add automaSetVariables('today', today)? I tried placing it in the JS script without success. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a JS snippet that extracts today's date into the variable "today"
//-------------------------------------------------------------------------------
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();
today = yyyy + '-' + mm + '-' + dd ;
//--------------------------------------------------------------------------------
I've tried passing the variable into the Forms Text Field as {{variables.today}} and simply as today, without success.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions