# How to get result from slider?

**URL:** <https://discourse.psychopy.org/t/how-to-get-result-from-slider/27001>\
**Category:** Builder\
**Tags:** pavlovia\
**Created:** [January 25, 2022, 4:49am UTC](https://discourse.psychopy.org/t/how-to-get-result-from-slider/27001 "2022-01-25T04:49:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fan\_Bu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/fan_bu/32/31826_2.png) [@Fan\_Bu](https://discourse.psychopy.org/u/Fan_Bu)\
**Post date:** [January 25, 2022, 4:49am UTC](https://discourse.psychopy.org/t/how-to-get-result-from-slider/27001/1 "2022-01-25T04:49:54Z")

</div>

Mac  
PsychoPy version: 2021.2.3

Hi all! I am trying to get participant’s result from a slider in the previous routine. I tried get.Rating function but it is not working. My exp looks like this right now: slider + feedback

Slider:  
In my\_slider routine I have a my\_slider1 component

my\_slider routine looks like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/9/090f57601544247351b0d73d77da0e77206588bc.jpeg)

Feedback:  
In islider\_rating, I have a code and a text

code:  
rating = 0 before experiment, and  
rating = my\_slider1.getRating() in “begin Routine”

Text:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/c/1ccef93fe2e44746e8ac8bea676963b82dd2468b.jpeg)

It always shows up 0, which is the value I initialized “rating” with. I am wondering why isn’t rating updated with the real slider rating?  
Can some one help me with this issue? Thank you very much!

Best,  
Fan

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [January 25, 2022, 1:39pm UTC](https://discourse.psychopy.org/t/how-to-get-result-from-slider/27001/2 "2022-01-25T13:39:20Z")

</div>

Hello Fan\_Bu,

you need to set the Text to **set every repeat** instead of **constant** (default).

Best wishes Jens
