PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Show/hide option fields by date

  1. Hi,

    I wonder, if there is a solution for show/hide option field by date/timestamp.

    E. g. I have the option fields

    Event:
    - 03.03.2013 (should be shown up to the 03.03.2013, 23:59 - Timestamp: 1362351540)
    - 04.04.2013 (should be shown up to the 04.04.2013, 23:59 - Timestamp: 1365112740)
    - 05.05.2013 (should be shown up to the 05.05.2013, 23:59 - Timestamp: 1336255140)

    Is that possible in any way?

    Thanks a lot in advance,

    Josch (Dennis' admin ;-))

    Posted 11 years ago on Sunday March 3, 2013 | Permalink
  2. You're in luck. Our developer David Smith recently wrote up this solution:

    http://gravitywiz.com/use-gravity-forms-conditional-logic-with-dates/

    Posted 11 years ago on Tuesday March 5, 2013 | Permalink
  3. Hi Chris,

    sounds nice :-)

    But it seems as if that doesn't solve my problem, because it only works for fields not for options/option selects.

    It's the same example as in my other question with the optgroup required check -

    I've got:

    --------------------------------------------------

    Please choose one of the following seminars:

    Basic
    - Date 1
    - Date 2

    Professional
    - Date 1
    - Date 2

    Expert
    - Date 1
    - Date 2

    Introduction
    - Date 1
    - Date 2
    --------------------------------------------------

    The dates in the option selects should be displayed by timestamp. If 'Basic' -> 'Date 1' is in the past it shouldn't be displayed anymore.

    Hope there will be a solution so that I don't need to make a complete handcoded php form ;-)

    Regards

    Josch

    Posted 11 years ago on Wednesday March 6, 2013 | Permalink
  4. That's the closest solution I know of. You could adapt his approach to work with your form by applying it to other fields. There is no built in way in Gravity Forms to do what you want to do without some programming.

    Posted 11 years ago on Monday March 11, 2013 | Permalink