I'm using webform_submission_render() to render multiple submissions to a webform with conditional fields on one page.

The rendered output does not match the submission:

Rendered output of webform_submission_render():

Submissions using node/%nid/submission/%sid :




Any ideas why?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DanChadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

Difficult to tell without seeing your code. There is caching involved, so perhaps some old data is being used when you call webform_submission_render more than once in a page.

You can configure a view to display rendered submission. I just checked and this works correctly for my test case. I'd start by confirming that a view of submission with a row style of rendered submission works properly. Then I'd compare what views is doing to what you are doing.

Also, I tested using 4.10. You should update before doing anything else to ensure that this isn't an issue that has been fixed. If you do find a bug in Webform, please re-open with details.

Chipie’s picture

Thanks. Showing the rendered submissions using a view delivered the same results.

Updating to 4.10 fixed indeed the problem.

Thanks.

DanChadwick’s picture

Moral of that story: Always update to the latest version when you have a bug. Save's everyone time. :)

Chipie’s picture

Next time I will certainly do.

Status: Fixed » Closed (fixed)

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