Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Contact Form Resets all fields, if just one error by user

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-01-2010, 09:19 PM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default Contact Form Resets all fields, if just one error by user

Can anyone tell me if there is a way to change the Contact Form habit of resetting all fields when there is an error upon submit?

If the user hasn't filled in all the required fields (lets say they forget one field) and then they press submit, ALL of the fields reset to [blank], with the note at the top stating 'required field..blah blah.

This is a pain, because then the user has to go through and enter all of the information again, instead of just the one field they forgot.

Is this a bug, and what can I do to fix this?

Thanks.
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #2  
Old 03-03-2010, 12:00 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Re: Contact Form Resets all fields, if just one error by user

Hi Mike,
I don't know it's bug with 4.0.13 version but in my version4.1.7 & in current version of xcart it's not resetting fields even if it's submitted with error.
It's should just display error for empty or wrong field.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #3  
Old 03-03-2010, 06:08 AM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default Re: Contact Form Resets all fields, if just one error by user

Thanks for the reply.

It does display the error, that's not the problem. It's just that it also resets every field to blank, instead of leaving the values entered in each field already and then directing the user to fill in the remaining fields.

Not sure why it's doing this, but very annoying to make the user reenter all of the information.
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #4  
Old 03-03-2010, 07:20 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Contact Form Resets all fields, if just one error by user

4.0.13 was EXTREMELY buggy, and should not be used for a live site. I'd strongly suggest upgrading to at least the stable release for that branch which was 4.0.19
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-03-2010, 07:54 AM
 
MikeBrum MikeBrum is offline
 

Advanced Member
  
Join Date: May 2003
Location: Morro Bay, Ca
Posts: 59
 

Default Re: Contact Form Resets all fields, if just one error by user

The form reset issue is with the store we're currently working on...version 4.3
__________________
Toobs.com

X-Cart version 4.3.1
PHP: 5.2.14
MySQL: 5.1.47
Reply With Quote
  #6  
Old 03-03-2010, 08:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Contact Form Resets all fields, if just one error by user

Ah, neglected to mention that
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 03-12-2010, 08:10 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Contact Form Resets all fields, if just one error by user

Just tested it on my 4.3.1, doesn't delete anything.
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:26 AM.

   

 
X-Cart forums © 2001-2020