How to use StartValue in Thunkable X with LocalStorage

Hello, Thunkers!

In this post, we’ll talk about How to implement StartValue in App

I saw many users seeking for the solution for StartValue in Thunkable X… :thinking:
So, finally, I found myself a solution and I want you all to have a look at it :grin:

So, if you want to transfer any type of value to another screen, you may try using LocalStorage for this.
I have some code blocks related to the above idea. You may take reference from them below :

Sending Start Value

image

Getting Start Value

image

Description
When we save and go to another screen, we make use of the value by ourselves, and then remove the value after our use. So, it does not populate the user’s storage.

Note: Please make sure that if you want to use the start value outside the Screen opens block, store the start value coming in a variable.

Hope this Tutorial helps you! :smile:
(This was my first tutorial, so please inform for suggestions :blush:)

Thanks!
Happy Thunking!

3 Likes

Please feel free to post any suggestions!

1 Like

Nice tutorial Kartik…

I think this example is simple…
Lets put more difficulty here! :smiley:

I get this image from blocks under, so what blocks need put to share in the other screen?

Thanks =)

1 Like

Here u go! :sweat_smile:

image

Thanks! :smile:

1 Like

You just forgot one thing

But here the block and results:

Screen 1

Screen 2

Thanks for the tutorial Kartik! This will help a lot of people and new thunkers :slight_smile:

1 Like

What?

Screen 2
When get from local storage do “from image set picture to value”

1 Like