Hi
I found a javascript function in code of the ecommerce app that was
causing me problems to register a new customer. The file is
~/ofbiz/applications/ecommerce/webapp/ecommerce/customer/newcustomer.ftl
and section is:
----------snip--------------------------------------------------------------------
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";
}
}
----------snip--------------------------------------------------------------------
This code prevents any non-US user from registering a new account
because it hides the state field on the form. After commenting this
code it works fine and displays the state field on the form. I am not
sure what the goal of this function is but I am wondering if it might be
reconsidered because of the issue it causes.
Michael