FIX BUG FOR DATE BETWEEN component in Queryform¶
The bug for setting default value in the component DATE_BETWEEN¶
- From the captured photo, we can see we can't set the default value to the date filter, we need to improve the user experience and set the default value like {$TODAY} +/- x according to the user require.
Fix of the bug¶
- 1st - workspace/client-admin/js/forms/componentsAdminDef/oneParam/DateBetween.js, replace 3 lines of code
- 2nd - add new js with the path: workspace/client-public-3.0/js/widget/date/DateFieldWithToday.js
- 3rd - check the new Queryform and test to set default value for the date_obs
- you can download the file 'DateFieldWithToday.js' directly