Closed (duplicate)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2010 at 05:47 UTC
Updated:
24 Nov 2010 at 10:56 UTC
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
Comment #1
drupa11y commentedHeres a screenshot of the form (frontend & backend): http://drupal.org/files/issues/2011.11.17_webform1.png
Comment #2
drupa11y commentedWhen I change the submitting-method from "post" to "get" I got the following URL:
http://mori.drupal7.dev/content/tickets?submitted[ottobrunner_konzerte][...
Comment #3
drupa11y commentedSpotted 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).
Comment #4
drupa11y commentedAlso:
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).
Comment #5
drupa11y commentedThere´s an issue for d6: http://drupal.org/node/435232
Comment #6
quicksketchThis 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.
Comment #7
drupa11y commentedGood to know. I´ll try to create a d7 version.
Comment #8
drupa11y commentedMade a solution with an template in my theme-folder.
Documentation is posted here: http://drupal.org/node/980566