When a Webform with a pagebreak is being utilized as a block is it possible for the post-break continuation to occur on the form's node page rather than within the block?
In my testing it seems to only stay within the block.
In my case I have rather long form I want to sort of tease at within the block portion.
One idea I have would be to simply put the entire form in one page with the "Block fields" accepting URL parameters as defaults. Then create my own form as the desired teaser block that might feign a "Next Page >" button with some jquery to grab the field values and concatenate them onto the webform's url. Thus plugging them into the form after the break.
But I wanted to ask just in case I was missing something in the module that might save me the trouble.
Thanks for your input and thanks for Webform!
Comments
Comment #1
ecksley commentedI'm still interested to know if there is a better way, but for what it's worth I was able to get my work-around to work. Below is my code if anyone is interested. I'm not claiming it is well written.
In the block is form markup (mostly pulled from the original webform output). I replace the submit button with a div I can style as a submit button later:
Also in the block is my jquery, which pulls the field values from above and concatenates them onto the proper webform's URL.
As long as the defaults for the webform's name and email fields are %get[name] and %get[email] it will be passed the values from the teaser block.
I suppose I could also add some validation to my jquery as well if I wanted to insure required fields are populated before advancing.
Comment #2
quicksketchPlease add your input to #1033090: Multiple step form - first in block the rest in node.
Comment #2.0
quicksketchFixed Typos