use Mkto setValues instead of setting 'value'
This commit is contained in:
parent
dc2226bcdd
commit
6a0f231d1f
@ -259,9 +259,12 @@
|
|||||||
ZM: 'Zambia',
|
ZM: 'Zambia',
|
||||||
ZW: 'Zimbabwe',
|
ZW: 'Zimbabwe',
|
||||||
},
|
},
|
||||||
country = document.querySelector("#Country");
|
mktoCountryInput = document.querySelector("#Country");
|
||||||
// sets the value in the form the user can see
|
// 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){
|
/*['email', 'country'].forEach(function(inputField){
|
||||||
|
Loading…
Reference in New Issue
Block a user