Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 920
    • Issues 920
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #2054

Closed
Open
Opened Sep 20, 2020 by KarinG@KarinGDeveloper

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:

  1. 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 ->

image

  1. What this does is place the current year onto the form: 0 years before and 0 years after and a default value -> all = 2020

image

  1. This has been working since 2014. Not sure when it regressed as this is an annual registration process (Sep - Dec every year).

  2. Issue: on Contribution page: on load -> all is well -> 2020 image

On both Confirmation and Thank you page -> 2014 (as opposed to 2020) and note the 2014 is also recorded in the CiviCRM database: image

  1. 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!

  2. So the default on load value for such a date field is no longer persisting.

Edited Sep 20, 2020 by KarinG
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#2054