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

quicksketch’s picture

Status: Active » Closed (fixed)

Before 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.