Basically, I am allowing users to input a geographic address into a searchbox. When they change the value it will check to see if we have that value already in the database. If not it will create a new thing within the type “property” with the address as a field.
Additionally when that searchbox value is not empty, two buttons appear. 1) Add a review, to allow the user to have a popup 2) View, which will send the user to the page of the address they have in the searchbox. (since it created a new thing)
The two problems that I am having is 1) Its not letting me define the popup as the thing related to the address in the searchbox and 2) its not sending the thing related to the address in the searchbox to the property page.
Your description is very unclear so it is difficult to understand what exactly your problem is. I’ll do my best below in the hope it helps.
Have you tried adding a custom state to the popup of type Property then in your workflow where you create the new property have an action that sets the custom state to Result is step … (the action that creates the new property)?
As for the page, in the Go to Page action you can add a manual parameter, call it Property and set the value to the property you just created. On the new page use a Get from URL to get the property. This is a very standard thing in Bubble and I am pretty sure it is in the training videos so it might be worth a trip back there. Also do a search in YouTube because bubblers post videos there and search the forum. What you are trying to do is pass data to a page.
I believe it would go something like this,
[in the actions menu]
–user clicks view property>
set state of “popup” to “custom state” with a vlaue of "geo address inputs’s value>
show popup
and then on the popup set its content to “popup’s”“custom state”
and then set all of the child elements to parent groups stuff
Hey Kyle the part I am having trouble with is the search box as a geographic place to link with the thing created. I’ll try this out and if it doesn’t work hit you up
@aloecf got your message, if you set the Type of the custom state to geographic address it should accept the searchbox address. I do it all the time. If you would like to share a couple of screenshots I or someone else can probably see the problem quickly.
I’ll try again, you are setting a custom state on the Searchbox Search for your home. Can you go to that Searchbox, click on the i symbol on top and show me your custom state definition.
I think I see the issue but will confirm when I get home in a few minutes. The custom state is of type Geographic Address (same as the Searchbox). Your page is of type Property which is a data table. You can not reference data to send to a page unless it is the same type as the page. Does that help you? Ping back if that helps you and let me know if you still need me to look.
Yes, I know. That is because the Property’s Page is of type Property (a record in a data table) and the Searchbox and custom state are of type GeoAddress (the data table’s Address field’s type). You need to send the new Property record you create to the page not the geoAddress. I know you tried that with the Parent groups Property but it is currently blank.
So I would create a custom state on the View Button of type property. I would set that when the new Property record/thing is created. Then when the user clicks the view button you should be able to send the custom state. Another approach would be to use the workflow action Display Data for the Parent Group (which currently is blank) with the Data to Display set to the newly created Property record. That way you don’t need a custom state at all and can simply send the Parent group Property which would now have a value not be blank.