How to fill a input on click

I have a search box of geographic location. I want that when a icon is clicked it gets populated with current geographic address.

I don’t want to use current geographic location in default value or placeholder.


Use a state, lets call it “location”

Create a state for the search box (click the little “i” icon at the top when editing the searchbox) and set the value of that state to blank. Then default value of the box to state “locations” value

Then create a workflow “when this icon is clicked” —> “set state of element searchbox” then select location and fill in the current users location

hope that helped

1 Like

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