Render form with submission
martinbelcic opened this issue · comments
I'm using formiojs@4.13.11
. I'm trying to make a PDF out of the form displayed in my web page.
But I am having issues because since Formio.createForm
does not renders the submission initally, I am setting it afterwards, the first time the form is rendered it's entirely empty.
The createForm
API can either take a form JSON definition or a Form.io form or submission URL. Here's an example of the former: https://formio.github.io/formio.js/app/examples/jsfiddle.html
The latter would look something like Formio.createForm(document.getElementById('formio'), 'https://<form.io server url>/project/<my project id>/form/<my form id>/submission/<my submission id>');
but you'd need to ensure that you have the correct access permissions.
Right, the submission is always going to be injected at runtime when created like this