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.
Hello. if we enable the "modal" contact, all works fine except that it only works if the user doesn't make the validation fail. For example, if he leave blank a required field, we land on a white page without any message. So i consider this feature can't be used in a production site for the moment - a bit to late for me; already on a production site :-).
How can i solved this issue ?
Comments
Comment #1
nyl_auster CreditAttribution: nyl_auster commentedI add this to lightbox2.module for the moment. For those who have this problem, juste copy / paste this function and put it line 1323. You can put anywhere else but this line is just below the first hook form_alter().
In case of wrong adress e-mail or a error from a field required, it will redirect you to the classic page of contact. I don't know how to ouput error right in the modal box but at least this function makes work normally the validation process and users will see the normal contact form only if a validation error message appear.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks nyl auster
I have been working on this for about 3 hours now.
Comment #3
Exploratus CreditAttribution: Exploratus commentedThanks. This worked great!. Now if we could only get it to work within the lightbox, that would be the icing on top of the cake...
Comment #4
sanjay128yadav CreditAttribution: sanjay128yadav commentedThis code is helpful: