Stuck getting data to display in input fields

I am building a user’s dashboard so they can edit their marketplace listing. What seems like a simple display of a current user’s listing has me stuck. I have tried numerous different ways there must be something fundamentally wrong with the logic.

I have a Users data type and a “Listings” data type. On the dashboard page where users would go to edit their listings, the only field I can get to display is the current user’s data is the email field. The Company, address etc. fields are from the “Listings” data type and I can’t get them to display the data. When I look in the Preview inspector it shows the field is connected to the correct database fields but the placeholder property shows as empty (Yes, there is definitely data in the database fields). If I set the placeholder to have dynamic data i.e… "Current User’s-Listing-Company Name” then the field in preview mode displays Lorem Ipsum…

If there’s anyone with advise it would much appreciated or if someone could take a look at it, even better.

Hi @daveg, if you want to share a link, I can take a look.

Hi @daveg, nice looking dashboard.

This result shows that the current user has no listing.

I think you’re getting mixed up between the placeholder text and the initial value of an input.

How is your Listing record getting into the current user’s Listing?

Thanks Gaby - I sent you an invite to be a admin. This problem exists on the page called “dashboard” The left navigation shows and hides groups - the one to look at is “Edit Listing”.

You helped me once before - thanks again in advance.

Thanks Mishav.
To add a listing - When a user signs up with Email and password I added a second step in the workflow that creates a new thing (“listing”) that includes a company name and category, which are getting added to the database, then the next workflow step sends them to the dashboard to make further changes.

Ok, you were missing the action that saved the Listing to the Current User. I made that update for you:

All of your fields on the Dashboard page reference “Current User’s Listing’s [field]” but the sign up flow had not saved the Listing to the Current User. I did see you reference the other way around though, it just wasn’t the same field you were referencing on the dashboard page.

Awesome - that was it. I wish I had reached out sooner but I guess the more time you spend on Bubble, the more you learn. Bubble is quite amazing. Thank you so much for your help.

1 Like