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