How to programmatically render the submission edit form

Created on 14 March 2024, 4 months ago
Updated 4 April 2024, 3 months ago

Problem/Motivation

I would like to render the submission edit form into the renderarray.

(The background functionality to implement is that i can render more then 1 edit form on a html page which can then be exported to 1 pdf file and can be send to the customer)

I found in my code the SID, in my case 351, of the the submission and I can also render the submission form:

$webform = $s->getWebform();
$webform = $webform->getSubmissionForm();
$renderarray = $webform;

So how to render the edit form which is available on routing path:
'/admin/structure/webform/manage/{webform}/submission/{webform_submission}/edit'
by code?

πŸ’¬ Support request
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands myDrupal2014_846824658246

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024