In webform_rules_rules_invoke_event(), submission data is converted to an array keyed on form_key.

This assumes that form_key will be unique in the webform, but this needn't be if e.g. fieldsets are used.

(If you clone a fieldset full of components, the components in the cloned fieldset will have the same form_key.)

Comments

stborchert’s picture

Hm, without having unique form_key how would you know which one to print?
I'm tending to set this to "won't fix" because (not only) the token integration is heavily bound to the form_key ... if there will be multiple components using the same key, at least token generation will fail.

grahamc’s picture

I believe Webform's own tokens require you to use the full path to the nested component, e.g. [submission:values:parent_key:component_key].

stborchert’s picture

Status: Active » Closed (won't fix)

Nope, Webform Rules uses tokens like [data:{component}-value] so it will not work using the same component name ("form_key") for different components.