only set state if in US
This commit is contained in:
parent
584a9bc716
commit
d889032f1b
@ -79,9 +79,12 @@
|
||||
}
|
||||
});
|
||||
hiddenInputCreator('state', function (newValue) {
|
||||
mktoForm.setValues({
|
||||
State: newValue.toUpperCase()
|
||||
});
|
||||
// only set state if we're in the US
|
||||
if(mktoForm.getValues()['Country'] === "United States"){
|
||||
mktoForm.setValues({
|
||||
State: newValue.toUpperCase()
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/*['email', 'country'].forEach(function(inputField){
|
||||
|
Loading…
Reference in New Issue
Block a user