Try the Demo

Magento Forum

   
SOLVED:  Unable to type in input field after validation error
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

I sure hope someone can help me…

If I leave some of the input fields that are required empty on some of my forms (i.e.:  Add New Address, Account Information, Edit Address, Share Your Wishlist, etc.), the validation will trigger that there is an error in the form.  That works good.  While the field is highlighted and stating that I need to fill it out, I cannot enter any text.  The entire field is not enabled, nor is any other field that is highlighted enabled.  The fields that were filled out just fine are enabled, though.  The only way for the average user to enable these fields is to refresh the page. 

I’m thinking that all of the forms in the My Account area have this problem.  The forms that are outside the account, like Login, Create New Account, Send Email to a Friend, Review Product, etc, all seem to work properly and are enabled when there are validation errors.

When I go to my Firefox Web Developer extension and check the enable form fields button, the account forms all work just fine while being highlighted. 

I have not altered the javascript at the bottom of the template files.  The javascript appears to be correct, and I’m not getting any javascript errors. 

An example for add new address:
var dataForm = new VarienForm(’form-validate’, true);
new RegionUpdater(’country’, ‘region’, ‘region_id’, <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, ‘zip’);

I am using Magento 1.7

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeffcustom
Member
 
Avatar
Total Posts:  67
Joined:  2012-11-29
Boulder, CO
 

So, do the fields have disabled=’true’ in them, or can you simply not enter any text?

I’m wondering if the validation divs are covering the input box, or if there’s something wrong with the version of js/varien/form.js

 Signature 

Customer Paradigm
A Magento Silver Solutions Partner
Boulder, Colorado
Projects From 1 hour to 1,000+
Magento Certified Developers
Programmers Who Care.  Code That Works.
Call Us: 303.473.4400
Toll Free: 888.772.0777
Visit: CustomerParadigm.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

I don’t know if the fields have disable=’true’.  Where would you find this?  I for sure cannot enter any text.  Even the cursor does not acknowledge that there is anything there.

I doubt there is anything wrong with the varien/form.js file.  It seems to be working with all of the other forms that are outside of the Account section.  When I installed 1.7, I did a brand new install - not an upgrade.

As for the divs, I haven’t changed any of the div id’s or classes.  The validation is working and is pointing out that the fields need to be filled with data before submitting.  The form is just not enabling those fields to be corrected with out being totally refreshed.

I’m not sure I answered your questions, but thanks for your input anyway.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  316
Joined:  2008-11-14
FL
 

did you try with magento default theme?

 
Magento Community Magento Community
Magento Community
Magento Community
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

I checked the default theme and sure enough it works just fine.  No problems with the input fields after a validation error.  I’m trying to locate the problem between the two themes.  Any thoughts?

I do not have a jquery conflict, either.

Thank you for your help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  316
Joined:  2008-11-14
FL
 

--delete--

 
Magento Community Magento Community
Magento Community
Magento Community
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

Deleting the theme is not an option.  Good grief; everything is done and working except for this problem.  At this point I’m going through the files to see where I went wrong.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  316
Joined:  2008-11-14
FL
 

LOL I was indicating my post was deleted.
It might be something wrong with js failed to toggle disabled attribute back and forth.
Did you see and js error in firebug console panel?

 
Magento Community Magento Community
Magento Community
Magento Community
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

Ha, ha, ha… sorry for accusing you.

There are no javascript errors in Firebug or Web Developer. 

I did notice that under the Firebug DOM tab it says IsContentEditable = false.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SheriUSA
Jr. Member
 
Total Posts:  12
Joined:  2010-06-22
 

I found out my problem.  I went to Firebug and Web Developer and found that there were no javascript errors.  In Web Developer, I viewed all of the javascript on one of the forms that I was having problems with, and then I viewed the javascript with the default theme to see what the differences were.  I had some extra javascript that was embedded in the page from a sidebar block that was affecting the overall page.  Once I deleted that, ba-da-bing, it all works well.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top