I have a data type called [Team]. This data is sent to a team page populated with data entered by the [User]. The team page has it’s own edit page to edit content.
My issue is with the workflow for the CTA (View Team Page) which is on the edit page. The CTA should link back to the team page.
I want the CTA to link back to the [current team page]. Keep in mind there can be more than 1 team page.
Well, this is just like the Profile page and User type issue we discussed here in the Forum earlier.
Your Team edit page is probably of type Team (if not, it should be). To send the user to the View Team page (which will also have a page data type of Team), just open that page and send the Team currently being edited as the data:
On click, Go to page “team” (just like you’ve got in your screenshot). Data to send: Current Page’s Team
(In short: You want to show them the View version of the thing they are currently editing. Both pages would have the same data – the Team in question. Both pages are dynamic pages of type Team. Changing the last part of the URL is how you access different Team objects.
Bubble makes this easy for you by letting you refer to that unique Team to display not as a weird string of numbers but as the results of a search, just passing along the thing we are already looking at, etc.)
I’m gonna suggest having a look at the Sending Data to a Page lesson again. It takes less than 10 minutes and will help you understand this concept.
Hmm. OK, so what do you mean by “not clickable”? Also, you’re testing the right page, yeah?
Give us a screenshot of the page that appears when you click Preview… Make sure it includes the navigation bar / URL.
You gave this page a data type of “team”, yes? Note that the preview page that appears by default WILL NOT be a usable page. You have to give it the unique ID of some Team object, right?
You’ll see that where there should be an object’s unique ID in the URL, there’s “sample-something”. You need to replace that with a real ID of a team object in your db. (Unless you have some other way to navigate to the page already with a real ID in there.)