use Mkto setValues instead of setting 'value'

This commit is contained in:
Cappy Popp 2021-01-06 14:48:30 -05:00
parent dc2226bcdd
commit 6a0f231d1f

View File

@ -259,9 +259,12 @@
ZM: 'Zambia',
ZW: 'Zimbabwe',
},
country = document.querySelector("#Country");
mktoCountryInput = document.querySelector("#Country");
// sets the value in the form the user can see
country.value = countries[newValue.toUpperCase()];
if (typeof MktoForms2 !== 'undefined') {
MktoForms2.allForms()[0].setValues({
'Country': countries[newValue.toUpperCase()]});
}
});
/*['email', 'country'].forEach(function(inputField){