It seems that when you submit the form, it sends you to the homepage and prints the result message. Does someone know how to get this to redirect somewhere else, say "/thankyou" and not print the result message?

Comments

teradome’s picture

Oh please, I would LOVE to know how to do this.

Because currently, all feedback does is send people to my homepage with no message whatsoever.

sodani’s picture

I've actually figured it out. You just find the following code, and add the path to where I've put in 'thanks'

      feedback_send_email();
      drupal_set_message(variable_get("feedback_rmsg_success", "Thank you for your message"));
      drupal_goto('thanks'); // Go to home page
eojthebrave’s picture

StatusFileSize
new0 bytes

Added a field to the admin/settings/feedback/* form called "Thank you page:" that allows you to specify a Drupal path to redirect the user to after form submission for another project. Here's the patch.

eojthebrave’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

Oops, attached the patch for real this time.

fago’s picture

What about using drupal's destination paramter?
Just make sur that feedback works with /feedback?destination=yoururl. Then the destination paramter will be used as soon as drupal_goto() 'll be called.

sun’s picture

Status: Needs review » Closed (won't fix)

Development on Feedback module v1.x has ended. Beginning from 2.x, the Feedback module has been replaced with a completely different module with a different purpose. Please note that Feedback 2.x is not compatible with 1.x. See #279636: Turn Feedback into user feedback module for further information.

There will be a final 5.x-1.1 release with all existing and tested patches in the issue queue applied. If you need the functionality of the Feedback 1.x module, the Contact module in Drupal core as well as the contributed Webform module are recommended replacements. However, there is no migration path to those modules.

Marking as won't fix.

Feel free to re-open this issue if you want to see this patch in the last 5.x-1.1 release.