By fe_lix_ on
Hello,
I have recently been using the module webform. I have installed it just fine, inside the admin I have set up the forms I want to use.
The problem I have is in actually outputing the form in the HTML. In the node.tpl.template inside the $node or the $content there is no sign of the actual HTML code of the form. I can see the structure of the form in the $node as this :
[components] => Array
(
[1] => Array
(
[nid] => 259
[cid] => 1
[form_key] => nom
[name] => Nom
[type] => textfield
[value] =>
[extra] => Array
(
[disabled] => 0
[width] =>
[maxlength] =>
[field_prefix] =>
[field_suffix] =>
[description] =>
[attributes] => Array
(
)
)
In the webform access control are checked :
- anonymous user
- authorized users
That should mean that any user should be able to submit this form.
Is there some trickt not well explained in the documentation to actually print this form?
Thank you.
Comments
If the forms are all set up
If the forms are all set up and published, they seem to have their own page, eg if you made a contact form called contact-form it will be in [your-site]/contact-form
works at bekandloz | plays at technonaturalist
It's all set up
Thanks for your reply.
Yes, that form has its own page, I can access it through its URL (ie: http://mysite/contact-form). The problem is that on this very page, no HTML code of the form is generated in ALL of the variables availables ($node, $content, ...).
The only sign of life I can find of webform is this array, in $node, that lists all the field of the form I created.
To make it more clear :
I do not understand why webform does not generate the HTML.
I have no special errors in Drupal log, PHP log
Thank you for your help
Félix
A way out
Hello,
I finally found a way out of that problem. I stopped looking at the form I already created, deleted it, as there were no replies it was not important. I created a new form and it just worked.
My only guess is that some SQL request or PHP script might have failed, leaving a broken record in the database.
Thanks.
Félix.
Sorry for not replying
Sorry for not replying earlier, glad you managed to find an easy fix :)
works at bekandloz | plays at technonaturalist
I have the same problem with
I have the same problem with all my forms. No errors anywhere, but just an empty form. I can't just delete and create a new one, as it has hundreds of results from before it broke.
Any idea what this can be?