[ 
https://issues.apache.org/jira/browse/OFBIZ-2086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657369#action_12657369
 ] 

Sumit Pandit commented on OFBIZ-2086:
-------------------------------------

This is occurd due to following code in 
applications/ecommerce/webapp/ecommerce/customer/newcustomer.ftl file :-

     function hideShowUsaStates() {
         if (document.getElementById("customerCountry").value == "USA" || 
document.getElementById("customerCountry").value == "UMI") {
             document.getElementById("customerState").style.display = "block";
         } else {
             document.getElementById("customerState").style.display = "none";
         }
     }

which is invoked onClick of country list box.

The code was committed by :-
Author: lektran 
Date: Thu Apr 10 02:22:31 2008
New Revision: 646710

Thanks
Sumit Pandit

> States/Provinces not displaying properly for country
> ----------------------------------------------------
>
>                 Key: OFBIZ-2086
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2086
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: SVN trunk
>            Reporter: CJ Horton
>            Priority: Minor
>
> https://demo.hotwaxmedia.com/ecommerce/control/newcustomer
> The State/Province drop down only becomes active when 'United States' is 
> selected as the country.  Every state and province for every country is 
> displayed.  If you select a country other than the 'United States' no 
> states/provinces are displayed.
> Potential areas to check:
> applications/ecommerce/webapp/ecommerce/customer/newcustomer.ftl
> framework/common/webcommon/includes/states.ftl
> framework/common/src/org/ofbiz/common/CommonWorkers.java
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to