Dear developpers,

Is there any progress for having a condition based on a date (datetime); thus the "greater than" or "lesser than" a given date ?

I have installed the beta4 from 7.x-4.0; but it is not there.

Thank you in advance.

Konrad Maquestieau

CommentFileSizeAuthor
#1 date-conditions.png16.47 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

FileSize
16.47 KB

There are already options for before date and after date when working with a date component. See screenshot.

quicksketch’s picture

Status: Active » Closed (fixed)
konrad_m’s picture

Hi,

I would like te re-open this.

Maybe I am missing something, but this "conditional based upon a date field" simply doesn't work for me.

What I try to do: a registration procedure for an event. After a given date in the future the price has to automaticaly change to a higher one.

Drupal: 7.52
Webform: 4.14
PHP: 5.4.45

1)
The only "date" element that we can use in a form is a user modifiable element - not usable for me.

When I try to create a "hidden" form element with a date in it, it is not recognized as "date" in the condition - not usable.

2)
Even a "date element" it is not correctly recognized - and my two different fields (with the price, "standard" and "high") is appearing simultaneously.

Any suggestions how to achieve this would be welcomed! Thank you.

Kind regards,

Konrad