diff --git a/LinkedIn - Demo Form Autofill.html b/LinkedIn - Demo Form Autofill.html index bf95645..375cbfd 100644 --- a/LinkedIn - Demo Form Autofill.html +++ b/LinkedIn - Demo Form Autofill.html @@ -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){