I´ve really tried a lot of things from various tutorials, but I didn´t make it.

Use case:
I want to print out the inputs from page 1 with additional calculations (sum of entered values) of a multipage-form on page 2 before the user submits the values.

Webform PHP didn´t work, nor was I able to get output by extending the templates in my theme.
How can I pass the entered form values of page 1 to the template file to make some calculations?

Comments

drupa11y’s picture

Heres a screenshot of the form (frontend & backend): http://drupal.org/files/issues/2011.11.17_webform1.png

drupa11y’s picture

When I change the submitting-method from "post" to "get" I got the following URL:

http://mori.drupal7.dev/content/tickets?submitted[ottobrunner_konzerte][...

drupa11y’s picture

Spotted this in my logfile after clearing it and submitting the form:
Notice: Undefined variable: form_values in include() (line 25 of /Applications/MAMP/htdocs/drupal-7.0-beta/sites/mori.drupal7.dev/themes/bartik_mori/templates/webform-form-100.tpl.php).

drupa11y’s picture

Also:
Notice: Undefined variable: langcode in ctools_node_content_render_node() (line 104 of /Applications/MAMP/htdocs/drupal-7.0-beta/sites/mori.drupal7.dev/modules/corefunctions/ctools/plugins/content_types/node_context/node_content.inc).

Notice: Undefined property: stdClass::$has_body in ctools_node_body_content_type_render() (line 32 of /Applications/MAMP/htdocs/drupal-7.0-beta/sites/mori.drupal7.dev/modules/corefunctions/ctools/plugins/content_types/node_context/node_body.inc).

drupa11y’s picture

Title: How to create an overview of submitted values before submitting » Summary/review/preview page with calculations before final submission in multistep forms
Category: support » feature

There´s an issue for d6: http://drupal.org/node/435232

quicksketch’s picture

Status: Active » Closed (duplicate)

This is actually an identical request, there's no point in having two issues for one problem. D6/D7 doesn't have any differences in this situation.

drupa11y’s picture

Good to know. I´ll try to create a d7 version.

drupa11y’s picture

Made a solution with an template in my theme-folder.
Documentation is posted here: http://drupal.org/node/980566