I'm trying to set a default value for a hidden field capturing a POST Array Variable (by the way, webform form keys are arrays) but the literal is not replaced with the posted value.

Should I escape/encode the field key in %post[key] when the variable is an array?


This does not work.
I also tried url-encoding the brackets inside the key like this:


This does not work either.
Instead, adding %post[form_id] (form_id:non-Array form variable) in the same field works as described.

I figured this out finally. The arrays were previously filtered out. There is a recent patch for everyone interested http://drupal.org/node/824606

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.