Score:1

How can I render a webform submission on a different page after loading it using a submission id?

ve flag

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!

leymannx avatar
ne flag
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?
Score:0
in flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.