Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move alert for Contact Form 7 to top of form WordPress

I'm working on moving the alerts for invalidation to a div directly above the contact form. A current working example can be seen here: https://www.biosimilarfacts.com/contact-us/index.aspx

I'm using WordPress Contact Form 7 plugin and the alerts are currently being displayed directly under the field for what is being returned as invalid. I need to group all of them at the same place above the form and preferably have a soft scroll to those error messages.

Thanks

like image 482
Adam Barrett Avatar asked Nov 28 '22 01:11

Adam Barrett


1 Answers

You can use the [response] tag in your form to change the location of the response message.

For example:

[response]

<p>Your Name (required)<br />
    [text* your-name] </p>

<p>Your Email (required)<br />
    [email* your-email] </p>

<p>Subject<br />
    [text your-subject] </p>

<p>Your Message<br />
    [textarea your-message] </p>

<p>[submit "Send"]</p>

You can find more information here: http://contactform7.com/locating-response-message-box-anywhere/

like image 128
vicente Avatar answered Dec 06 '22 02:12

vicente