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

#   new validation notifications

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 2 months ago [\#210572](#210572) by [clet](/forum/user/30783-clet "View clet's Profile")  *[new validation notifications](/forum/27-checkout/878576-new-validation-notifications#210572 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6  hey guys,  i'm just looking to implement a more elegant solution for the registration form validation process.  The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...  so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.  My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.  cheers dan")* was created by *[clet](/forum/user/30783-clet "View clet's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.6

hey guys,

i'm just looking to implement a more elegant solution for the registration form validation process.

The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...

so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.

My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.

cheers
dan

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

11 years 2 months ago [\#210606](#210606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[new validation notifications](/forum/27-checkout/878576-new-validation-notifications#210606 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6  hey guys,  i'm just looking to implement a more elegant solution for the registration form validation process.  The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...  so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.  My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.  cheers dan")*

Hi,

This is done in the hikashopCheckField function in the file media/com_hikashop/js/hikashop.js with the line: Code:

alert(hikashopFieldsJs['validFieldsComp'][type][i]);

The following user(s) said Thank You: [clet](/forum/user/30783-clet "View clet's Profile")

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 2 months ago [\#210724](#210724) by [clet](/forum/user/30783-clet "View clet's Profile")  Replied by *[clet](/forum/user/30783-clet "View clet's Profile")* on topic *[new validation notifications](/forum/27-checkout/878576-new-validation-notifications#210724 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6  hey guys,  i'm just looking to implement a more elegant solution for the registration form validation process.  The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...  so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.  My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.  cheers dan")*

> nicolas wrote: Hi,
>
> This is done in the hikashopCheckField function in the file media/com\_hikashop/js/hikashop.js with the line:
>
> Code:
>
> alert(hikashopFieldsJs['validFieldsComp'][type][i]);

Awesome Nicolas!

That works like a charm... check my screenshot...

however i'm wondering for some reason it check's the form from bottom to top so when you leave the form blank the first error is always the last one instead of being the first error from top to bottom...

is there a way to revert this order?

cheers,
dan

- [ ![Screen&#95;Shot&#95;2015-08-05&#95;at&#95;10&#95;10&#95;40&#95;am.png](/forum/attachment/25850) ](/forum/attachment/25850 "...0&#95;10&#95;40&#95;am.png") [ ](/forum/attachment/25850?download=1 "...0&#95;10&#95;40&#95;am.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODU3Ni1uZXctdmFsaWRhdGlvbi1ub3RpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#210759](#210759) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[new validation notifications](/forum/27-checkout/878576-new-validation-notifications#210759 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6  hey guys,  i'm just looking to implement a more elegant solution for the registration form validation process.  The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...  so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.  My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.  cheers dan")*

Hi,

Nice !

For the checking order ; it's done by that line Code:

for(var i = hikashopFieldsJs['reqFieldsComp'][type].length - 1; i &gt;= 0; i--) {

You can replace it by Code:

for(var i = 0; i &lt; hikashopFieldsJs['reqFieldsComp'][type].length; i++) {

And I think that we will also replace it in our side.

Regards,

---

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

The following user(s) said Thank You: [clet](/forum/user/30783-clet "View clet's Profile")

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 2 months ago [\#210848](#210848) by [clet](/forum/user/30783-clet "View clet's Profile")  Replied by *[clet](/forum/user/30783-clet "View clet's Profile")* on topic *[new validation notifications](/forum/27-checkout/878576-new-validation-notifications#210848 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6  hey guys,  i'm just looking to implement a more elegant solution for the registration form validation process.  The current alert window works but it's not the ideal, as the new browsers have that annoying check box to prevent future popups from happening. if you click on it, the form passes the validation check and continues even with missing fields...  so i was thinking on removing the alert window and using some other type of notification like little speech bubbles or tooltips on the forms itself.  My question is, there exactly it's the script that creates the alert windows so i can disable and implement a different approach to it.  cheers dan")*

Thanks Jerome,

Works prefect!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODU3Ni1uZXctdmFsaWRhdGlvbi1ub3RpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) 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.114 seconds

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

[](#top)
