Closed (fixed)
Project:
Webform
Version:
7.x-3.19
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jan 2014 at 22:01 UTC
Updated:
3 Mar 2014 at 14:50 UTC
Jump to comment: Most recent
Comments
Comment #1
marcmueller commentedComment #2
swim commentedWebform wraps all form components inside the "submitted" array. Of course this is also reflected in the form component names.
Now I don't believe the components position will matter as long as it keeps the same key. However instead of performing a hook_form_alter and moving the form components outside of the submitted array you could add an extra submit handler and post the data there in which ever manner you wish.
Comment #3
quicksketchI'd suggest you use a module such as https://drupal.org/project/webform_remote_post, that will reuse the existing form keys to send a POST request server-side to your newsletter, but it will omit the "submitted" wrapper around all the form elements. You cannot remove the "submitted" wrapper from Webform without severely breaking the functionality of the module.
I'm moving this to fixed, please put back to "active" if you have further questions.
Comment #4
marcmueller commentedThanks, that looks like the right thing.