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.
I've installed webform and practically nothing else on drupal 8.4.3, enabled all webform modules and the webform demo: event registration system, and webform examples.
When I go to Content > Demo: Event 1
I find that:
Event date/time
Saturday, February 3, 2018 - 17:29
however:
Event Date
[webform_submission:node:field_webform_demo_event_date:date:short]
I think this is wrong. Is it me, have I not enabled something?
I think it should compute this Event Date field form the Event date/time.
I've checked and there is a date/time format with machine name short that is set to: m/d/Y - H:i
Comment | File | Size | Author |
---|---|---|---|
#8 | webform-8.5.x-2934172-#8.patch | 1.48 KB | Maheshwaran.j |
#7 | webform-token-dependencies.png | 11.9 KB | Maheshwaran.j |
#4 | webform-event-date.png | 19.09 KB | Maheshwaran.j |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI was able to replicate the issue using https://simplytest.me using the below steps.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe issue is that you need to install and enable to the Token module.
Can you confirm that installing and enabling the token module fixes the problem?
Then we should investigate why this is happening and decide if we need to add the token module as a dependency.
Comment #4
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at DrupalPartners for Innoppl Technologies Pvt. Ltd commentedhi jrockowitz
The issue prevails even when the token module is enabled, I have attached screenshot.However, I tested with Drupal version 8.5.x. token module version 8.x-1.1
Comment #5
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at DrupalPartners for Innoppl Technologies Pvt. Ltd commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYes, the tokens will be visible if you navigate directly to the webform because there is no source entity.
https://du6s9.ply.st/webform/demo_event_registration
On the below simplytest.me site (only available for 24 hrs) the token is only visible if I uninstall the token module.
https://du6s9.ply.st/node/1
Comment #7
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at DrupalPartners for Innoppl Technologies Pvt. Ltd commentedHi jrockowitz
I am sorry, I just looked at the wrong place.
Yes, the event date field works perfectly when the token module is enabled.
I installed a fresh setup of 8.5.x and enabled web form and token.
Comment #8
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at DrupalPartners for Innoppl Technologies Pvt. Ltd commentedI have added a patch that applies dependencies to the token module in .info file of experimental modules or if you want to add in the webform.info.yml?
Comment #9
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at DrupalPartners for Innoppl Technologies Pvt. Ltd commentedComment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI want to investigate why this token is not working before adding the dependency.
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYep, the token.module is providing the entity reference/field chaining via field_tokens.
Only the Webform Demo: Event Registration System module requires the Token module.
Of course, most people should be installing the token module but the core webform does not have to require it.
Comment #14
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented