Go to page : send data is mandatory

Hi all,

I am going to put my application live soon and the only errors that I have left are :

" Go to page X : remember to fill out Data to send "

The problem is that my index page from witch I want to navigate has no data to send, there is no data creation in the index… Any idea how I can counter this problem ?

Cheers

The page that you’re “Going To” has a Content Type set to it. If that target page is not using anything that refer’s to “Current Page’s [Thing]” , then you can remove the Content Type, and this requirement will go away on any Go to Page actions.


Gaby | Coaching Bubble
Private coaching, courses, and tons of free resources

7 Likes

Thanks @romanmg,

The problem is that the destination page has a content type…

2 Likes

Then you need to send data to that page. That page is expecting data in order to populate it, so if you go there without any data being sent, you’ll get a broken page.

1 Like

Why does your page have a content type if you don’t send any data to it? Sounds odd, but if you still want to do it this way you could try to just use an empty dummy record which you send to your page.

@andrewgassen & @reger-alexander

Thank you for your answers, I log the user in the index page and then I create data of a different type in the other pages that I then use on different pages.

If I create a stupid field in the User type this could work ? I already tried to send the user email but it did not change much…

EDIT : I solved the problem thanks :slight_smile:

@biminmotion - how did you solve this?

I am dealing with this same problem. I have a button on current user’s page (type:user) for them to view their company access (type:company) and a “go to page” workflow, but it won’t let me send user data because it is type:company. (I have addressed this with a RG on the company page referencing “current user’s…” so I don’t need to send data).

I worked around it by passing a search for a Thing of the right type, but matching a unique id of blank - so it will never find a matching record => build validation is happy, but the result is navigating to the page without a key.

8 Likes

If I’m going to the page “new product” I don’t have any data to send. The page “new produtct” has a content type, but I don’t have any data to populate it.

This is a great workaround! Thank you.

The reason I needed this is the page I was sending had a type. That type was needed so that I could send data on page load to the page when doing filtering on that page. However, I wanted to link to that page but not send data. This worked!

I solved using the “Random Item” Option.
Captura de Tela 2022-08-05 às 14.55.25

This made me laugh, and solved my issue. Thank you.

It would make sense that bubble developers have a special interest in making the platform as accessible as possible, addressing maybe more likely the nontechnical newbies (like myself) than the established coders which are tired of writing lines of code. After consuming tons of bubble tutorials about sending data to a page and URL parameters, I’m frustrated that I still can’t find the logic in its recommended practices.
I have a profile page with type of content = User and several containers with data source = Current Page User. The profile page contains several data types (all linked to User data type in the database). I have a side menu with a repeating group with data source an option set ( which contains the menu items) and I am using URL parameters for navigational purposes on the page. Ever since I set the content type of the Profile page as User the debugger asked for some content in “Go to page / Data to send” input, additional to URL parameters from “Send more parameters”. The only acceptable solution (the only one turning blue) is Current User … Can somebody make a sense of that? Current user is a data source not a content type. This is not the data source that fits my page – it is Current Page User (not available in “data to send “) not Current User. To me it looks like an element with data source an option set is sending the wrong data to the same page, data not related with the sending element…??? This workflow has only navigational purposes so it’s hard to believe that the profile page “draws” its loading content from what the side menu sends.

You set the page type to User so it is expecting a specific User to be sent over when you navigate to that page. That is why Current User is an acceptable data source. On your portal page when you are making the reference “Current page’s User” you are referencing whatever User you sent from the previous page.

thanks for the answer but still , if I, the admin, want to see / edit the profile of a user I don’t want to send data of the Current user (=me) but the data of the Current page user (= the user); thanks for tolerance of ignorance

If the page content type is User, you can ‘send’ and User data you want (it doesn’t have to be the current user)

What I did was put the button inside a group and set the group’s Type of Content, and then send a Parent’s Group in ‘Go to page’ action. It worked.