Forums
Home / Plugin: Conditional Fields for Contact Form 7 / date condition
(@lorelore)
8 months, 2 weeks ago
Hi
can I create a condition base on a date field ? Somehow like
show [this-field] if [date] greater than "today"
In my form:
[text startdate default:post_meta] [text todaysdate id:todaysdate] [group future]in the future[/group]
‘todaysdate’ via js
Tried this as condition:
show [future] if [startdate] greater than "[todaysdate]"
but with no luck. Any hint how I could make this work?
(@jules-colle)
6 months, 2 weeks ago
You would need to write a custom function for this. This feature is only available in Conditional Fields Pro though. https://conditional-fields-cf7.bdwm.be/advanced-conditional-logic-with-custom-javascript-functions/