I was wondering if it was possible to have the browser forward the user to the original contact page if validation of the contact form fails, where the contact form is in a block in another page. The fields would still be populated, and the invalid form items would still be highlighted.

The UI problem is twofold-- the failure messages are rendered near the top of the page, and the contact block is in the footer at the bottom. The location of the message block needs to remain where it is since there are form items in the main page that need to report their errors there. Also, I have another block that allows users to log in. When the "name" field of the site-wide contact form does not validate, the page ends up also highlighting the "username" field of the log in form. This is odd behavior, since the user was just submitting the contact form, and not the log in form.

Comments

nedjo’s picture

I see the point, but relatively hard to do, since it's not just a matter of forwarding. The form on the contact page is a different form so far as forms api is concerned, so the errors and previous values won't apply to it without customization.

mikey_p’s picture

Issue summary: View changes
Status: Active » Closed (outdated)