I embed webforms into multiple places on a node. I had a weird issue that if I flush the cache and reload the page and submit the embedded form it doesn't submit any data. Instead it just refreshes the page.

I used to use 7.x-3.17 and it never gave me this issue.

CommentFileSizeAuthor
#1 webform-not-submitting-2537256-1.patch1000 bytesalbertski
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

albertski’s picture

Status: Active » Needs review
FileSize
1000 bytes

I compared the latest code to the old code since I wasn't experiencing this issue before and I think we need to go back to having the action be to the node url instead of $node->webform['action'];. That fixed the issue for me.

Also another option is to use hook_form_alter() to alter the '#action'.

if ($form["#node"]->type == "stage_one_form" && !path_is_admin(current_path())) {
    $alias = "/" . drupal_get_path_alias("node/{$form['#node']->nid}");
    $form['#action'] = $alias;
  }

Status: Needs review » Needs work

The last submitted patch, 1: webform-not-submitting-2537256-1.patch, failed testing.

DanChadwick’s picture

Status: Needs work » Closed (won't fix)

This branch receives critical fixes only. Perhaps your patch will help other users.