Hello Community,
Explaining the entire use case might make this topic very big.
So, I will try to ask a simplified version of a use case that I am having trouble figuring out.
I have a Search Box, whose choices are set to Geographic Places.
My use case is that, based on a selected location on a different page (with a similar implementation), I need to pre-fill the search box on the current page.
For Example:
Page 1) The User selects Hotel A
and clicks on submit.
I can get as much info as needed and redirect the user to a second page(all details of the selected location added to URL params)
Page 2: Now I want to use this data from the URL to pre-fill the second Search Box with Hotel A
.
I understand the concept of custom states and initial value, etc.
What I am struggling with is how to pass the data to the state.
There is no datatype for Geographic Address
when I try to create a new thing, and I am not able to auto-fill the search box in this case.
Please let me know if I missed any details.
Any help is appreciated.
Based on 1:
Pre-fill this 2: