Hi,
I’m trying to add text to a Javascript input field in bubble from my javascript widget in this way:
widget.on('address:select', function (fullAddress, metaData) {
var cityEl = document.getElementById('city');
cityEl.value = city;
cityEl.setAttribute('value', city);
});
but whenever I then try to save in the database, the fields value are not read, and when I move on the input field with the mouse and then I move away(lost focus) the input text is automatically deleted.
How can I set the text of an input field from Javascript correctly so that bubble recognises it ?