4

Civi 4.7.3 and Wordpress 4.4.2

Since upgrade from 4.7 to 4.7.3 I cannot seem to add a custom date field and allow the user to select a date older than 10 years ago. Recreated on Demo site: Click here to view demo field.

I set the options to allow 90 years before previous date, but still I only get last 10 years in the list from the calendar.

Shall I raise this on Jira?

2

Also posting my answer to How do I override the default date range of JQuery date widget? here - for those following this Question:

I think the answer may be that this is working in 4.7.7 - set your date range in the Custom Field - Edit screen [I want to go back 30 years]:

Custom Date SE field:

And this is indeed giving me a dropdown going back 30 years (I can select 1986):

1

I've just checked this on the demo site. It appears that you can type in any date up to the limit (in this case dates after and including 1 Jan 1926). However, the date picker widget only shows the last ten years.

I'm not sure you would want the date picker widget to show all 90 years as that would make the drop down list very long. So I think this may be working as designed.

0

We noticed the same issue, but it was only happening if eg we set a years for the past and not set one for the future. If we also added one for the future it worked.

Our thinking is that if only is one set then the options are potentially infinite and hence the default +/- 10 kicks in

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["<li class=\"-item\"><a href=\"https://www.facebook.com/officialstackoverflow/\" class=\"-link\">Facebook</a></li>\r\n                    <li class=\"-item\"><a href=\"https://twitter.com/stackoverflow\" class=\"-link\">Twitter</a></li>\r\n                    <li class=\"-item\"><a href=\"https://linkedin.com/company/stack-overflow\" class=\"-link\">LinkedIn</a></li>\r\n                </ul>\r\n\r\n                <p class=\"mt-auto mb24\">\r\nsite design / logo &#169; 2019 Stack Exchange Inc; user contributions licensed under <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a>\r\n                            with <a href=\"https://stackoverflow.blog/2009/06/25/attribution-required/\" rel=\"license\">attribution required</a>.\r\n                    <span id=\"svnrev\">rev&nbsp;2019.8.16.34633</span>\r\n                </p>\r\n            </div>\r\n        </div>\r\n\r\n            </footer>\r\n            <script>StackExchange.ready(function () { StackExchange.responsiveness.addSwitcher(); })</script>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">CiviCRM Stack Exchange"], "copyright__copyright__copyright": ["ed.\n\n0\n\nWe noticed the same issue, but it was only happening if eg we set a years for the past and not set one for the future. If we also added one for the future it worked.\n\nOur thinking is that if only is one set then the options are potentially infinite and hence the default +/- 10 kicks in\n\nYour Answer\n\nBy clicking \u201cPost Your Answer\u201d, you agree to our terms of service, privacy policy and cookie policy\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}