Drupal - Webform, Not Authorized

in

Q: I am using the drupal webform module to implement a 'Contact us' type form but when an anonymous user tries to submit the form they get this error: 'You are not authorized to access this page.' How can I fix this?
A: Make sure that the webform node is marked as 'published'.

The drupal webform module provides a very good alternative to the sometimes limiting drupal 'Contact Us' functionality. It provides more flexibility allowing you implement a 'Contact Us' form that more closly matches your target web design. For example it allows you to more easily include a google map and other rich information.

There is however a common gotcha with webforms - for anonymous users to be able to successfully submit a form, the corresponding webform node must be marked as published.

Normally when you create a node, say a page node or a blog post or something, its 'published' flag (in its setting page) defaults to set/true, so that when you save the node it is immediately published. For some reason on the webform's settings page this flag defaults to unset/false, so before you save the node you must make sure to manually mark it as published and anonymous users should no longer get the error message when they submit your form.

Stranger
Stranger's picture
Thanks!

This did it for me. I was stuck on this issue for half-an-hour.
Thanks again.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Pride on FacebookPride on TwitterPride on TwitterPride on Twitter

Join Our Newsletter

* indicates required

Irish Internet Association

finalist.png
phone-number.png