Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | date-conditions.png | 16.47 KB | quicksketch |
Comments
Comment #1
quicksketchThere are already options for before date and after date when working with a date component. See screenshot.
Comment #2
quicksketchComment #3
konrad_m CreditAttribution: konrad_m as a volunteer commentedHi,
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