Auto-populate a search field

Hi guys,

Is it possible to auto-populate a search field with a value entered by the user in another search field?

When the user first accesses my site, they see a popup where they can enter their current location. Once they close the popup, I would like another location field to have the same value that they entered, pre-entered in the field. Is this possible?

Thanks

Yes, set the initial content of the 2nd input element to the value of the first input element. If you’re using the SearchBox element, then it would be the default value.

1 Like

Of course! Thanks so much for this :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.