only set state if in US

This commit is contained in:
Cappy Popp 2021-01-07 10:56:56 -05:00
parent 584a9bc716
commit d889032f1b

View File

@ -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){