[Skip to main content](#vessel-content)

#   Checkout registration automatically scroll to top when user error

##

- **[GW](/forum/user/33851-gw "View GW's Profile")**
- [![GW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33851-gw "View GW's Profile") Topic Author
- [ Offline](/forum/user/33851-gw)

Less More

- Posts: 200
- Thank you received: 75
-
-

8 years 10 months ago [\#285820](#285820) by [GW](/forum/user/33851-gw "View GW's Profile")  *[Checkout registration automatically scroll to top when user error](/forum/27-checkout/893451-checkout-registration-automatically-scroll-to-top-when-user-error#285820 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3  Hi,  during checkout registration when a user doesn't enter all his data correctly, the error messages will appear at the top of the form. Especially on small screens such as on mobile devices this can be a problem since the register/continue button is all the way at the bottom and the errors are out of view from the user, and they may have no idea why the register button isn't working or doesn't seem to do anything.  Would it be possible when the user clicks on the register/continue button but has made a mistake, to automatically scroll back to the top to where the error messages are displayed? That would be a great improvement.  Also, if the registration page reloads because not all fields are entered correctly some browsers show a Javascript error in the developer tools: Object doesn't support property or method 'forEach' File: media/com&#95;hikashop/js/checkout.js, Line: 134, Column: 3  Thanks for any help.")* was created by *[GW](/forum/user/33851-gw "View GW's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

Hi,

during checkout registration when a user doesn't enter all his data correctly, the error messages will appear at the top of the form. Especially on small screens such as on mobile devices this can be a problem since the register/continue button is all the way at the bottom and the errors are out of view from the user, and they may have no idea why the register button isn't working or doesn't seem to do anything.

Would it be possible when the user clicks on the register/continue button but has made a mistake, to automatically scroll back to the top to where the error messages are displayed? That would be a great improvement.

Also, if the registration page reloads because not all fields are entered correctly some browsers show a Javascript error in the developer tools:
*Object doesn't support property or method 'forEach'*
File: media/com_hikashop/js/checkout.js, Line: 134, Column: 3

Thanks for any help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzQ1MS1jaGVja291dC1yZWdpc3RyYXRpb24tYXV0b21hdGljYWxseS1zY3JvbGwtdG8tdG9wLXdoZW4tdXNlci1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 10 months ago [\#285863](#285863) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Checkout registration automatically scroll to top when user error](/forum/27-checkout/893451-checkout-registration-automatically-scroll-to-top-when-user-error#285863 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3  Hi,  during checkout registration when a user doesn't enter all his data correctly, the error messages will appear at the top of the form. Especially on small screens such as on mobile devices this can be a problem since the register/continue button is all the way at the bottom and the errors are out of view from the user, and they may have no idea why the register button isn't working or doesn't seem to do anything.  Would it be possible when the user clicks on the register/continue button but has made a mistake, to automatically scroll back to the top to where the error messages are displayed? That would be a great improvement.  Also, if the registration page reloads because not all fields are entered correctly some browsers show a Javascript error in the developer tools: Object doesn't support property or method 'forEach' File: media/com&#95;hikashop/js/checkout.js, Line: 134, Column: 3  Thanks for any help.")*

Hello,

Can you please provide a link to your website so we can check the JS error and understand more about the usage context ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzQ1MS1jaGVja291dC1yZWdpc3RyYXRpb24tYXV0b21hdGljYWxseS1zY3JvbGwtdG8tdG9wLXdoZW4tdXNlci1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[GW](/forum/user/33851-gw "View GW's Profile")**
- [![GW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33851-gw "View GW's Profile") Topic Author
- [ Offline](/forum/user/33851-gw)

Less More

- Posts: 200
- Thank you received: 75
-
-

8 years 10 months ago [\#285876](#285876) by [GW](/forum/user/33851-gw "View GW's Profile")  Replied by *[GW](/forum/user/33851-gw "View GW's Profile")* on topic *[Checkout registration automatically scroll to top when user error](/forum/27-checkout/893451-checkout-registration-automatically-scroll-to-top-when-user-error#285876 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3  Hi,  during checkout registration when a user doesn't enter all his data correctly, the error messages will appear at the top of the form. Especially on small screens such as on mobile devices this can be a problem since the register/continue button is all the way at the bottom and the errors are out of view from the user, and they may have no idea why the register button isn't working or doesn't seem to do anything.  Would it be possible when the user clicks on the register/continue button but has made a mistake, to automatically scroll back to the top to where the error messages are displayed? That would be a great improvement.  Also, if the registration page reloads because not all fields are entered correctly some browsers show a Javascript error in the developer tools: Object doesn't support property or method 'forEach' File: media/com&#95;hikashop/js/checkout.js, Line: 134, Column: 3  Thanks for any help.")*

Hi,

you can see what I mean on the demo website as well, we don't think it's related to our website.
Just add any product, go to checkout and click on register while leaving some fields empty. Chrome doesn't appear to show the JS error, but for example Edge or IE (we know it's IE, but still the third most used browser) will have it, see also attached image.

Regarding our question though, when a user clicks register, the checkout page will briefly process the form and some error messages will be added at the top of the page, but the page will *stay exactly where it was*, at the bottom of the form where the error messages are completely out of view.
It may seem logical to just scroll back up, but from experience we can say there are many customers who really do not understand that and simply leave because nothing appears to happen when they click the button and they think the checkout is broken or faulty. So if the page could automatically scroll back to the top, that would be much better to avoid any confusion with customers.

Thanks.

- [ ![Hikashop&#95;Checkout.jpg](/forum/attachment/42160) ](/forum/attachment/42160 "...p&#95;Checkout.jpg") [ ](/forum/attachment/42160?download=1 "...p&#95;Checkout.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzQ1MS1jaGVja291dC1yZWdpc3RyYXRpb24tYXV0b21hdGljYWxseS1zY3JvbGwtdG8tdG9wLXdoZW4tdXNlci1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 10 months ago [\#285879](#285879) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Checkout registration automatically scroll to top when user error](/forum/27-checkout/893451-checkout-registration-automatically-scroll-to-top-when-user-error#285879 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3  Hi,  during checkout registration when a user doesn't enter all his data correctly, the error messages will appear at the top of the form. Especially on small screens such as on mobile devices this can be a problem since the register/continue button is all the way at the bottom and the errors are out of view from the user, and they may have no idea why the register button isn't working or doesn't seem to do anything.  Would it be possible when the user clicks on the register/continue button but has made a mistake, to automatically scroll back to the top to where the error messages are displayed? That would be a great improvement.  Also, if the registration page reloads because not all fields are entered correctly some browsers show a Javascript error in the developer tools: Object doesn't support property or method 'forEach' File: media/com&#95;hikashop/js/checkout.js, Line: 134, Column: 3  Thanks for any help.")*

Hello,

If I'm asking you a website it's for a good reason ; like knowing the version number you're using and check if you have all latest patches or not.

Regarding the JS error, now that I can see that you're using Internet Explorer ; I have the required information to deduce that IE do not handle "forEach" on the result of the function querySelectorAll.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MzQ1MS1jaGVja291dC1yZWdpc3RyYXRpb24tYXV0b21hdGljYWxseS1zY3JvbGwtdG8tdG9wLXdoZW4tdXNlci1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
