Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedDifficult 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.
Comment #2
Chipie CreditAttribution: Chipie commentedThanks. Showing the rendered submissions using a view delivered the same results.
Updating to 4.10 fixed indeed the problem.
Thanks.
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedMoral of that story: Always update to the latest version when you have a bug. Save's everyone time. :)
Comment #4
Chipie CreditAttribution: Chipie commentedNext time I will certainly do.