Results 1 to 4 of 4

Thread: Date field for Year Only

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Date field for Year Only

    Hi,

    Is there a feature/work around/ etc. that will allow me to create a date field that is only used for selecting a Year. For example online backing, or submission pages that as for the date of birth in three different dropdowns.

    So when a new year begins it is added to the list.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Date field for Year Only

    Hello,

    I think you should to create this field manually.

    You need to add function in vardefs for your year field.
    Letrium ltd. - Only high quality service
    http://letrium.com

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Date field for Year Only

    Ok,

    No sure how to do this. But is it a case of creating a Dropdown via studio and then create a custom script that is called in the vardefs to populate the field?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Date field for Year Only

    About functions in the vardefs.php read there.

    You should to create new record in the vardefs.php
    Then, add your function.
    Function should return a dropdown.
    Letrium ltd. - Only high quality service
    http://letrium.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Increase Date by One Year via Workflow
    By chrislynch8 in forum Help
    Replies: 0
    Last Post: 2010-01-19, 04:18 PM
  2. Sugar Reports & Fiscal Year in date filter
    By webnetin in forum Developer Help
    Replies: 1
    Last Post: 2009-08-15, 12:02 PM
  3. Logic Hook + Passing Date to Custom Date Field
    By chrislynch8 in forum Developer Help
    Replies: 12
    Last Post: 2009-07-22, 03:58 PM
  4. Hilite date on year mode of calendar
    By varun.shesh in forum Developer Help
    Replies: 0
    Last Post: 2009-05-06, 09:38 AM
  5. Replies: 0
    Last Post: 2009-01-21, 08:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •