1

I'm trying to render the content of the webform submission programmatically onto a different page. I can load the webform submission using the sid, but is it possible to embed the submission in another page similar to the way a webform can be embedded? I can iterate through the submission data and print it out manually, but I want to avoid it since my webform uses various conditionals.

I've tried embedding it similar how a webform object is embedded, but it doesn't seem to be working.

Any hints or pointers for this are really appreciated.

Thanks!

2
  • You mean like rendering the values? Like when you visit a submission as admin where all submission values are printed below each other? I mean you could like the the submission result template does in the Webform module. Or do you mean rendering the form?
    – leymannx
    Jul 1, 2021 at 20:09
  • You can look how the webform module does it in the src/Controller/WebformSubmissionViewController.php file
    – Ronnie
    Apr 19 at 19:10

1 Answer 1

0

One thing you could do, is use Webform Content Creator to create the content after the submission. And then use entity reference to embed the submission content into your desired page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.