Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Dont use
d2 = #date.yyyy-MM-dd#;
Use
d2 = $('input[name="start"]').datepicker('getDate');
because hash variable can only be parsed at server side (once when you load the form from server)
I think you want it to run everytime "start" value is changed.
It works, the problem is if I set d2 datepicker to readonly, the script will become no function and I don't want the user to manipulate the date of current day.
Currently I am trying to use hash variable in my javascript to calculate the date range from the selected day I picked but it doesn't work, here are my code
so I wonder is there other approach for getting the date range?