Using SearchBox for address autocomplete

I am using a SearchBox with Geographic places as an autocomplete for an address form. When an address is selected from the list, I can extract the parts and display them in inputs.

I would like to use the SearchBox as the first line of the address input, so that when an address is selected, I change the SearchBox display value to be Street number + Street.

e.g if “1 Astor Place, New York, NY, USA” is selected, I change the display value to “1 Astor Place”

  • Address line 1 (SearchBox)
  • Address line 2
  • City
  • Postal Code
  • Country

Any ideas?

Got it working with some Javascript from a workflow:

Screenshot 2024-02-19 at 14.10.18

…except that doesn’t really work because if I have set the SearchBox to “1 Astor Place” and I click in to the SearchBox and click away to lose focus it sets it back to the full address “1 Astor Place, New York, NY, USA”