When trying to embed either a webform content type or a webform block the form embeds beautifully. However, the form does not submit. If errors are returned for empty fields, the form is properly shown with red field borders and the appropriate messaging....etc. However, the form is not submitted. Results of the submittal do not show up in the webform results tab. Normal submittal of the webform does show results in the results tab.

I am still digging but if there is a known issue and someone can point me in the right direction, I will fix.

Comments

markalosey’s picture

Apparently, this is not restricted to webform module...but also no submittal occurs or even a call of the _submit function when a form is presented in the embedded content. I have created a simple little form that just hooks into node api to put a form at the top of any given piece of content. This form shows up fine in the embedded content but submitting it never calls the _submit function for that form.

markalosey’s picture

Update. The function embed_widgets_form_override_submit is definitely called and somewhere in there is the place where we don't end up getting forwarded to the proper submit function.

if I comment out the line below from form_alter hook in embed_widgets.module, values are recorded for a webform used as a widget I will continue to hunt but maybe other people have encountered this....

   foreach($buttons as $key => $value) {
      if (is_array($value)) {
//        $form[$key] = embed_widgets_array_insert($form[$key], $buttons[$key]);
      }
    }