Webform date token

Created on 6 September 2023, about 1 year ago
Updated 19 September 2023, about 1 year ago

Problem/Motivation

I'm faced with a new issue. I update from Drupal 9 to Drupal 10. During my recipe, I saw that in webform the token used to get a value from another field doesn't work anymore, with the message: The timestamp must be numeric.

The token used before the update was : '[webform:element:my_date_field:value]' I tried : '[webform_submission:values:my_date_field:html_date]', '[webform_submission:values:my_date_field]' or '[webform_submission:my_date_field:html_date]' without any result.

The token '[webform_submission:created:html_date]' still working.

Steps to reproduce

  • Create a field Date: "my_date_field"
  • Create another field Date: "my_second_date_field" with a minimum date based on my_date_field example with the token [webform:element:my_date_field:value]
  • In Drupal 10 "my_second_date_field" can not be saved
  • In Drupal 9 "my_second_date_field" can be saved

Can someone help me to find a good way :)?

πŸ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡«πŸ‡·France guisharko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024