Default value (on page load) for date value in Custom Field w/ multi-data on Contribution Page does not persist - and is reset to first date recorded instead
Issue Description:
- Contribution page has a Profile contains Custom data -> Tab multi-data fields (Year, Education Hours and Hours Worked) so that every year Members can record this data ->
- What this does is place the current year onto the form: 0 years before and 0 years after and a default value -> all = 2020
-
This has been working since 2014. Not sure when it regressed as this is an annual registration process (Sep - Dec every year).
On both Confirmation and Thank you page -> 2014 (as opposed to 2020) and note the 2014 is also recorded in the CiviCRM database:
-
Here is what does work -> if I configure the Custom Field to allow -1 and +1 years - so 2019, 2020 and 2021 -> and if (on the contribution page) -> I first toggle the year to 2021 -> and then toggle it back to 2020. Then the 2020 value is persisting across Confirmation and Thank you pages!
-
So the default on load value for such a date field is no longer persisting.