Hello,
I have setup a sitewide contact form on my site which sends the messages to the desired email address but is there anyway to redirect to a page other than the front page to display a formatted success message? Right now, after submitting the form, you are redirected to the front page and the text "Your message has been sent" is displayed using the drupal_set_message function. Due to the way my site's front page layout is designed with images and flash etc, this message is obscured at the top of the main content area and is just plain text with no formatting to make it stand out. As a user, I would find it hard to even notice that the message was displayed and I would wonder why I am back at the home page. It would be preferable to have the user redirected to a separate page that displays the sent message or at least stay on the contact page and display the message at the top. Even having the message themeable in some way would be great so the it's color or background could be changed.
In addition, with the message threshold setting, a user cannot view the contact page if they have exceeded the number of messages allowed per hour. While this is fine and will preserve bandwidth and keep spammers from flooding the server with junk, it also keeps legitimate users from seeing important contact information on the page. I imagine that your typical user would not sent multiple message thus exceeding the threshold but if they do, I don't think that the proper action to take is to not display any of the contact page content at all. It should just keep them from submitting the form but still display all of the content such as the business address, phone number, hours etc.
Thanks,
Jason
Comments
*SOLVED* The Contact
*SOLVED*
The Contact Redirect module allows you to redirect to any page where a custom message can be specified.