I’m trying to pass along data to a popup and open it if when the webpage loads, the URL contains a data type’s unique ID (doesn’t have to be a specific ID, just contain an ID type).
Any way to do this?
Thanks
I’m trying to pass along data to a popup and open it if when the webpage loads, the URL contains a data type’s unique ID (doesn’t have to be a specific ID, just contain an ID type).
Any way to do this?
Thanks
I have an app that creates a unique url for each user. If I were to have a pop open only when the URL contained a specific users unique id, the workflow would look like this. I think the critical part for you would be the “Only when” criteria which in my example is “This url contains Current User’s unique id”
You could set it up to pass certain data to the popup based on that user’s unique id (ie search for user data and use unique id as search criteria). Hope this helps…
tx
Nikolai
@nikolai The issue I’m having is the “only when” criteria doesn’t allow me to search for a specific data type. So “only when - do a search for data type x’s unique ID - is in URL” is what I’m trying to do.
For some reason, it won’t allow me.
Will setting it up something like this work for you? It allowed me to open a popup.
Ah this worked! Filtering it by “first item” won’t restrict the search to only the first unique ID in the database?
Thanks!
Also, how do I then go on and pass that unuiqe ID to the popup?
Thabks again.
During the page loaded workflow, you need to “Display data” in the popup you want the data to be used in before opening the popup. In my example I used “Current Page User” for “Data to Display”. You may need some other parameters instead for your app.
Gotcha. So there’s no way to use the data being found in the URL as the data to send to the popup? Or am I missing something?
My understanding of bubble’s url’s is that the url will contain your page name plus the unique id of whatever Data Type you’re sending to that page (ie User, Automobiles, Sports, etc) (ie something like https://mysite.com/version-test/test_page/925455610979111805x92). So when you goto a page,you’ll have “Data to send” . In the example below, I have Picture as the Data Type of the page called “test_page” so I can send that page Picture data. If you send “test_page” different data of type Picture, each actual Picture instance will have a unique_id that you can search on. Then on that page, you can do the popup stuff described earlier. Make sense?
In my url example above, if you had 3 different instances of a Picture (say a picture of an apple, picture of orange and one of a banana), if you go in the database, each of the three will have a unique_id. That respective Picture’s id will be added to after the url with “test_page” in it (depending on which ones data is sent to “test_page”
I should also have mentioned that when i did a little test on this, for the popup i created, i had a text element that showed Current Page Users unique_id to verify i was passing the correct unique_id to the popup
Ah ok. This makes sense, thing is, I’m not sending a user from one page to another, this would be a link shared outside of the site, and incoming users would view a project shared by this link.
In my case, I can’t refer to “current page’s x”. Unless I can somehow set the state of the page to the URL’s uniquqe.
Not sure if this is helpful but for one of my apps, I create a unique url based on the unique_id of User. That unique link is shared with users outside of the site. So users who have access to that url will go to a bubble page with info for them to see.
In your case, instead of using User unique_id, you might have a Data Type of “Project” and as you create projects, each will have its own unique_id. Then for each Project page that gets created, you’d have a unique url for each page which you can share with people outside the site. When they come to the site, you can to the searching activities from earlier in the thread to provide those users with whatever it is they need to see. Make sense or are you looking at something a bit different?
Yes makes sense. Sounds like a popup solution instead of a project per page method, comlicartes things. I’m going to try this way.
Thanks alot for your help!
This topic was automatically closed after 70 days. New replies are no longer allowed.