MENU

  • Coding Blog
  • Coding Help
  • About
  • Contact

Interspire: Solving the “State/Province required” error in Internet Explorer when creating new accounts

Posted on July 26th, 2012 in Ecommerce, HTML, mySQL.

I recently helped a customer who was not able to set up an account on an Interspire store in Internet Explorer because the field for selecting a state/province was not displaying, so he could not select the correct one, and yet it was a required field – so he could not create an account. Here is how I solved the issue:

1) Make the “State/Province” field NOT required

Log into the PHPMyAdmin for the Interspire site and open the formfields table. In the formfieldlabel column, you will see two entries for “State/Province.” Open each one, and change the value for formfieldisrequired and formfieldisimmutable from 1 to 0. Save your changes. This makes the “State/Province” field an optional field and not a required field anymore.

2) Make sure the “State/Province” field is displaying in Internet Explorer

In looking at the source code of the Create Account page, this is the html for the State/Province field:

<select name="FormField&#91;2&#93;&#91;12&#93;" id="FormField_12" style="display: none; ">

As you can see, the style “display:none” was being added to the field. In order to fix this, I added this block of code to the stylesheet for the site:

#FormField_12 {
display:block !important;
}

Note: You may need to change the ID for the code block above if it is different than the ID in your Create Account page.

Save your changes, refresh the page in Internet Explorer and – Voilà! Now customers can both see the State/Province and not fill it out if it is not relevant to them.

Share the knowledge:

  • Twitter
  • Facebook
  • Email
  • LinkedIn
  • Google
  • Reddit
  • Popular Posts

    • MySQL: Moving columns from one table to another
    • CSS Tricks: How to use a semi-transparent background in a div without affecting the text
    • How to preserve anchor tags in links shared using a social media sharing plugin on a one-page website
    • Create back and forward page navigation buttons for your website
    • Website forms: Use Javascript to auto fill one field with the values from two other fields
  • Recent Posts

    • Disable Gutenberg for specific post types
    • How to remove the custom color picker from Gutenberg
    • Configuring BitBucket pipelines for deploying to FTP site
    • WordPress: Wrap the published day, month, and year in span tags
    • WordPress Tricks: How to create a WYSIWYG page template for an archive page
  • Connect With Me

  • Categories

  • Tweets by @TheLibzter
Copyright © 2021. Icode4you – PHP, CSS, HTML, WordPress, and Javascript coding tips, tutorials, help, and more.
All rights reserved.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.