Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to change the link (or remove it) whern a user has summitted a form and the thank you message appears?
OR
Can I change the class of the message?
If I redirect the user to another page, the message comes up in red, which is our css for message and which we want to keep. But if we redirect after a web form submit, I'd like to show the message in another div styled differently.
If not I just want to change or delete the "go back to form"
thanks
Comments
Comment #1
quicksketchYou can do both by overriding the webform-mail.tpl.php file. Read the THEMING.txt file for instructions on how to theme Webform e-mails.
Comment #2
agerson CreditAttribution: agerson commentedI think that is in webform-confirmation.tpl.php
Comment #3
quicksketchI think it's time to close after 6 months. Thanks agerson.
Comment #4
alexanansi CreditAttribution: alexanansi commentedI don't know if this will work for Drupal 6, but it works on Drupal 7.
Just add this into your CSS file
Comment #5
RumpledElf CreditAttribution: RumpledElf commentedAs a random aside since I found this issue while googling, I had a client request to get rid of that link on webforms in a popup (using colorbox_node and webform_ajax) and put a button there instead to close the popup.
I ended up with this in the confirmation tpl: