Data Viewer List for navigation

Hello, I was able to set this up with the simple list block function. I am trying to sort out how to do it with Data Viewer List function as i believe this will give me better function for updating and adding content in the future. Attached is a picture of what I could do with the simple list function.

This is the closest i have gotten with Data List Viewer but the function does not work.


The goal is to use a google sheet for the table where i will be able to add topics at any point in the list when needed and having them sorted in alphabetical order is important. So i would preferer not to have to completely re enter the list components in the format that you have to do with a simple list.

Hi @macalbus.mav9fvck welcome to Thunkable.

The reason your code is not working is because the green row I’d block returns a number rather than a string.

If you change the checks to check for the correct number (row I’d) it should work

1 Like

Another way of doing this would be if get value from row id [green row id] = “Sedation” do…

2 Likes

How would i do this?

Can you show me an example?

Sure, can you share a link to your project?

1 Like

https://x.thunkable.com/copy/9001ee4ad70a50d18816a1c0d7851cf7

Like this:

I have tried this configuration, however, it doesn’t execute. Any ideas?

Yes, you need to debug the code. The way you to do that is to first check the values you are getting. So I would assign a label’s text to the get value block in the screenshot above. When you click on the item in the Data Viewer List (DVL), what does the label show? Is it showing “Cardiac Arrest” or something else?

Because when I look at your local data source, you entered “Cardiac arrest”. That’s not the same as “Cardiac Arrest” so it’s not going to match.

Hi @macalbus.mav9fvck ,

the red text label should contain “Cardiac arrest”, not “Cardiac Arrest”. I tried it and it works :slight_smile:

1 Like

Another way to do this would be to make sure the screen names exactly match the DVL item choices (the values from the data source) which would only require this set of blocks:

Because that is going to literally go to the screen named [clicked item].

2 Likes

Can you share the link to this, for some reason i just cant seem to do this on my end.

Are you asking me or @Michael_Rogulla? What isn’t working for you?

https://x.thunkable.com/copy/694054a1f4581d55733c2d076b3eee48

This is great. Thank you all.
I have navigated the solution from your help!

3 Likes