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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjarlett created an issue. See original summary.

jrockowitz’s picture

I was able to replicate the issue using https://simplytest.me using the below steps.

jrockowitz’s picture

Status: Active » Needs review

The 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.

Maheshwaran.j’s picture

FileSize
19.09 KB

hi 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

Maheshwaran.j’s picture

Status: Needs review » Needs work
jrockowitz’s picture

Status: Needs work » Postponed (maintainer needs more info)

Yes, 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

Maheshwaran.j’s picture

Hi 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.

Maheshwaran.j’s picture

I 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?

Maheshwaran.j’s picture

Status: Postponed (maintainer needs more info) » Needs review

Status: Needs review » Needs work

The last submitted patch, 8: webform-8.5.x-2934172-#8.patch, failed testing. View results

jrockowitz’s picture

I want to investigate why this token is not working before adding the dependency.

jrockowitz’s picture

Yep, 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.

jrockowitz’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.