Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a themed webform. Every component is themed.
After much digging and a lot of frustration, I finally found the action array. The code here
"print drupal_render($form['actions']['submit']);" does send the form on its way. However, the data isn't being posted to the database.
It the above correct? What about saving the form as a draft?
Thanks for the great module.
gerald
Comments
Comment #1
quicksketchBefore custom theming will ever work, you always need to print out the remainder of the form which will include things like the hidden "token" and "form_id" fields. Without these fields, Drupal cannot process the form.
In other words, do this at the end of your template:
<?php print drupal_render($form); ?>
This question is out of scope for support offered in the Webform queue, so I'm closing it directly.