Event "Form submit" not populating variable current_form for webforms

Created on 23 February 2023, over 1 year ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

The current_form variable isn't being populated with webform data when using the event "Form submit". Changing to the event "Form validate" populates the variable and might be used as a workaround for some.

Steps to reproduce

UPDATED

  1. Create one event Form submit and one event Form validate, restrict to a webform entity type of your choice
  2. Add action Warning message for each event, and use a token from current_form, in my case [current_form:values:antal_fron]
  3. Test the webform and the variable will only be written when using the event Form validate, see image "webform_message"

When submitting another form, let's say a page form, the current_form works for both events, se image "page_message".

πŸ’¬ Support request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden Jaffylainen

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @Jaffylainen
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    I'm not sure if I really get this right. The event Form submit and Form validate do not come from the eca_webform module but from the eca_form module contained in ECA itself. Are we talking about those events? And if so, is the difference you describe only related to webforms or is this happening with all forms?

    In any case, it would probably be helpful to upload an exported ECA model which demonstrates the issue.

  • πŸ‡ΈπŸ‡ͺSweden Jaffylainen

    is the difference you describe only related to webforms or is this happening with all forms?

    Only related to webforms. I updated the issue text to clarify, hope it helps.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    I have imported the model you've uploaded and that is configured to only respond to entity bundles page and lagg_till_froer. That will certainly not respond to a webform submission. If the form submit event is configured to listen to entity bundles only, then this event will only be triggered for entity forms of those bundles, but not on webforms.

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
Production build 0.71.5 2024