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

#   small problem with new FIELD\_AJAX\_FILE

##

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#136750](#136750) by [bart31](/forum/user/28720-bart31 "View bart31's Profile")  *[small problem with new FIELD\_AJAX\_FILE](/forum/3-bug-report/864381-small-problem-with-new-field-ajax-file#136750 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I think that there is a little problem with the new type of ajax upload file in custom fields.  If you have several required fields in a form, some ajax files and some text areas or boxes, you get either : - standard javascript alerts or - top of the page messages, depending on which type of field calls the alert. (in my case, it's &quot;order&quot; custom fields in checkout's first step)  Let's say you write a text in a custom text field, then you forget to add the file before clicking on &quot;submit&quot;, page reloads, displays the alert, and you lose what you just wrote in the form text field.  So as it is it can be annoying, I prefer to go back to standard file upload field for now.  I'm not sure it's not my config though, but i thought i would let you know just in case. I have a hard time trying customizing some fields with javascript, so maybe I did something wrong somewhere :P")* was created by *[bart31](/forum/user/28720-bart31 "View bart31's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi, I think that there is a little problem with the new type of ajax upload file in custom fields.

If you have several required fields in a form, some ajax files and some text areas or boxes, you get either :
- standard javascript alerts
or
- top of the page messages,
depending on which type of field calls the alert. (in my case, it's "order" custom fields in checkout's first step)

Let's say you write a text in a custom text field, then you forget to add the file before clicking on "submit", page reloads, displays the alert, and you lose what you just wrote in the form text field.

So as it is it can be annoying, I prefer to go back to standard file upload field for now.

I'm not sure it's not my config though, but i thought i would let you know just in case. I have a hard time trying customizing some fields with javascript, so maybe I did something wrong somewhere ![:P](/media/kunena/emoticons/14.png ":P")

Last edit: 12 years 10 months ago by [bart31](/forum/user/28720-bart31 "View bart31's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjQzODEtc21hbGwtcHJvYmxlbS13aXRoLW5ldy1maWVsZC1hamF4LWZpbGU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

12 years 10 months ago [\#136784](#136784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[small problem with new FIELD\_AJAX\_FILE](/forum/3-bug-report/864381-small-problem-with-new-field-ajax-file#136784 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I think that there is a little problem with the new type of ajax upload file in custom fields.  If you have several required fields in a form, some ajax files and some text areas or boxes, you get either : - standard javascript alerts or - top of the page messages, depending on which type of field calls the alert. (in my case, it's &quot;order&quot; custom fields in checkout's first step)  Let's say you write a text in a custom text field, then you forget to add the file before clicking on &quot;submit&quot;, page reloads, displays the alert, and you lose what you just wrote in the form text field.  So as it is it can be annoying, I prefer to go back to standard file upload field for now.  I'm not sure it's not my config though, but i thought i would let you know just in case. I have a hard time trying customizing some fields with javascript, so maybe I did something wrong somewhere :P")*

Hi,

Thank you for the report.
It would have been great if you could have given the errors that you got.

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

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