I am wanting to know whether this is possible in the Modern forms designer.
in the classic forms Designer we had a single line field that would be passed to the google API and it would allow the field to be auto completed with Destinations.
var autocompleteFrom = new google.maps.places.Autocomplete( (document.querySelector('.MileageStart input')), {types: ['geocode']});
since the in the modern forms designer all values are accessed through the LFForms interface is there a way to get the actual element and not just the values. I have Tried this but receive an error
var field= LFForm.findFieldsByClassName('MileageStart'); var autocompleteFrom = new google.maps.places.Autocomplete( (field[0]), {types: ['geocode']});
any help would be appreciated