Values not showig up in collection after submit

I’m trying to get the values from AddressInput - got that to populate in test fields.

  1. I’ve connected each input to the respective data field
  2. Each of those fields are marked as required, so it cannot submit without data
  3. All other data goes to the collection just fine, but none of the values that I populate as an OnChange event that you can visually see on the form actually submit when submit is clicked - only everything else

Why could this be?


export function clientAddress_change(event) {
 let address = $w('#clientAddress').value;
 let lat = address.location.latitude;
 let longitude = address.location.longitude;
 let pretty = address.formatted;
 let street = address.streetAddress.number + " "  + address.streetAddress.name;
 let city = address.city;
    $w("#lat").value =lat;
    $w("#long").value =longitude;
    $w("#string").value =pretty;
    $w("#street").value = street;
    $w("#city").value = city;
}


Form:

Collection after submitted: