CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Year selector for relationship start and end dates
Pages: [1]

Author Topic: Year selector for relationship start and end dates  (Read 1723 times)

bwaindwain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Year selector for relationship start and end dates
November 24, 2009, 10:30:06 am
For the relationship start and end dates, the year drop-down selector on the date popup gives a choice from 20 yrs in the past and 20 yrs in the future. So, if I want a date in 1979 I can only go to 1989 and then I have to click the left arrow "Prev" button, month by month, until I get to 1979.

I think that 30-40 yrs in the past and 10 yrs in the future might be a more useful choice. Or, let users type the date manually.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Year selector for relationship start and end dates
November 24, 2009, 09:28:05 pm
Quote
I think that 30-40 yrs in the past and 10 yrs in the future might be a more useful choice. Or, let users type the date manually.

user can define own range for these dates by changing 'Start Offset' and 'End Offset' for Date Class.
these dates are using "relative" Date Class.

Go to :  Administer CiviCRM -> Global Settings -> Date Formats -> Advanced Date Input Settings -> Edit the 'Start Offset' and 'End Offset' for 'relative' Date Class.
now corresponding changes in date range will reflect on relationship form.

In your case these offsets value would be
1. 'Start Offset' : 30-40
2. 'End Offset' : 10

HTH

kiran
You Are Designed To Choose... Defined By Choice.

bwaindwain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: Year selector for relationship start and end dates
November 26, 2009, 08:49:35 am
I couldn't find the 'relative' date class. I'm using CiviCRM 3.1 alpha2. It's not in the sandbox either (http://sandbox.civicrm.org). I tried the other classes and found that the 'searchDate' class is the one to adjust for relationship dates.

Thanks for the tip. I didn't know those settings even existed!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Year selector for relationship start and end dates

This forum was archived on 2017-11-26.