Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Modal Forms with Multistep Webform works perfectly.
I have now gotten it to Save Drafts correctly as well.
I'd like to know how to I load the form again with the Draft information already filled in?
If I go to node/ it works and the previously saved Draft is loaded.
When I try it with modal_forms/nojs/webform/ it just brings up a blank Webform to fill in again.
Any ideas?
Comments
Comment #1
cmcs CreditAttribution: cmcs commentedTo answer my own question. Here is a quick note. Sorry for no patch yet.
I looked through the webform_node_view() function in the webform module and found some help.
I modified the function modal_forms_view_webform()
I added the following which loads the submission into $submission:
Then I found which was calling drupal_get_form with no extra parameters:
And changed it to the below so that it now passes the $submission object:
I also found a FALSE being sent to form builder args
Which I changed to include the $submission object: