I have several forms in 7.x.3 that make extensive use of %post[id] tokens. How can I capture this data into a field with 7.x.4?

Comments

danchadwick’s picture

Status: Active » Fixed

In an e-mail? Use [submission:values:form_key]. See the token browser in the e-mail configuration form.

sterndata’s picture

I need to take data from the post and display it on the form before it's emailed. A view generates stuff with checkboxes inside a form. Clicking submit posts to a webform, where the user supplies additional info then submits the form. I guess I'll have to set up a test with 7.x.4 and see if this works.

danchadwick’s picture

If needed, you can always generate the post tokens yourself. It might be worthwhile reviewing why they were removed. I'm sure there is a reason, but it predates my involvement with this module.

sterndata’s picture

submission values appear to be only the values typed directly into the form. I need to set the default values for fields in the form based on values in the $_POST array. Is there a way to do that or do I have to mod the module? How do I "generate the post tokens"?

sterndata’s picture

Status: Fixed » Active
danchadwick’s picture

Status: Active » Fixed

@stemdata -- I don't know enough about your application to help you further, but there is nothing to prevent you from making a custom module to generate the post tokens you seem to be missing. Your application is very unusual. Usually the post variable are not needed when using the Drupal form API. Programming support is beyond the scope of this issue queue. You might try the forum or IRC. Best of luck.

Status: Fixed » Closed (fixed)

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