justinmind Slider set value to variables

Jan Fuxa shared this question 2 years ago
Answered

Hi, i have problem with setting value from slider in justinmind. I prototype a mobile app for smarthome app. I need slider for setting temperature.


I have function that when i drag the slider then the value is increasing --> variable + 1, but i dont know how make decreasing on the other side, how recognize the direction dragging move.


PLEASE HELP ME....

Comments (8)

photo
1

Hi Jan,


You should do the same when decreasing the values --> Variable -1.


Also, to recognize the direction when dragging you should use the "on drag start" then keep the position into a variable. Then use the "on drag" using the current position minus the last position.


I hope this helps,


Best,


Sonia Durán

photo
1

Could i send my file with prototype and you make it ? Its posible ?

photo
1

Hi Jan,


Usually, we do not create prototypes. If you want to share with us the vp file here (via dropbox/wetransfer) and I will have a look to your prototype.


Best,


Sonia Durán

photo
1

Thank you so much.

photo
1

1c10310a67b508943736db3f20fba0e1

photo
1

I upload this prototype on dropbox and then i put link there, you could see slider on the bottom on the screen and label with number "24". I need value from slider to label.


https://www.dropbox.com/s/bzgttjniyzr...

photo
1

I shared prototype via dropbox, could you look at on this ?

photo
1

Hi,


here you are your slider modified. In case you want to modify the first and last value, you can do it at the expressions tab.


https://www.dropbox.com/s/cf5ozo6g7tz...


b2625273c68bb8df54e65b0ee6f69b5c


I hope it helps.


Best,


Sonia Durán