ahmedengu's solution to "Scroll to reCAPTCHA element"

Greetings,<\/p>\n\n

You can solve it easily by changing the following line:<\/p>\n\n

quform/js/plugins.js (line 244)
\n
\n self.scrollTo($firstError);
\n<\/code><\/p>\n\n

To:<\/p>\n

    <\/span>self<\/span>.<\/span>scrollTo<\/span>(<\/span>$<\/span>firstError<\/span>.<\/span>parent<\/span>());<\/span>\n<\/pre><\/div>\n

and thats it<\/p>\n\n

Best regards,<\/p>\n\n

Ahmed<\/p>\n

Greetings, You can solve it easily by changing the following line: quform/js/plugins.js (line 244) ``` ): ``` self.scrollTo($firstError); ``` To: ``` self.scrollTo($firstError.parent()); ``` and thats it Best regards, Ahmed
Greetings, You can solve it easily by changing the following line: quform/js/plugins.js (line 244): ``` self.scrollTo($firstError); ``` To: ``` self.scrollTo($firstError.parent()); ``` and thats it By the way i suggest using this attribute with the phone field to prevent submitting text (at least on the client side): https://www.w3schools.com/tags/att_input_type_number.asp Best regards, Ahmed
Greetings, You can solvefix it easily by changing the following line: : `quform/js/plugins.js` (line 244): ``` self.scrollTo($firstError); ``` To: ``` self.scrollTo($firstError.parent()); ``` and thats it By the way i suggest using this attribute with the phone field to prevent submitting text (line 244): ``` self.scrollTo($firstError); ``` To: ``` self.scrollTo($firstError.parent()); ``` and thats it By the way i suggest using this attribute with the phone field to prevent submitting text (at least on the client side): ): https://www.w3schools.com/tags/att_input_type_number.asp Best regards, Ahmed

User: ahmedengu

Question: Scroll to reCAPTCHA element

Back to question