Closed (fixed)
Project:
Webform
Version:
5.x-2.6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 13:57 UTC
Updated:
13 Jan 2010 at 18:30 UTC
Greetings
I'm theming my webform but I have a pair of issues, maybe you could help me. I'm showing the whole webform with print drupal_render($form['submitted']), but I'm not able of showing the submit button! Is there a separate command for showing the submit button?
Also, as I'm fully theming thw ebform, I would like to hide all the textfield labels. Is this possible?
Thank you very much!
Comments
Comment #1
quicksketchIn order to print the submit button, you need to print the rest of the form. The
$form['submitted']portion only includes the fields that you configured and doesn't include several hidden fields and the submit button that Webform needs to save the form.Something like this will work:
Drupal is smart enough to not print out the fields that you've already printed out a second time, and you should always end any theming with a drupal_render() of the entire form object just to make sure that any fields you've missed will be printed out.
Please do not bundle multiple questions into a single issue, it makes information more difficult to find.
Comment #2
quicksketch