# Retrieve value from slider

**URL:** <https://forums.losant.com/t/retrieve-value-from-slider/1420>\
**Category:** Help\
**Tags:** particle, dashboard\
**Created:** [January 9, 2019, 6:08am UTC](https://forums.losant.com/t/retrieve-value-from-slider/1420 "2019-01-09T06:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![Tron7](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tron7](https://forums.losant.com/u/Tron7)\
**Post date:** [March 22, 2019, 4:05am UTC](https://forums.losant.com/t/retrieve-value-from-slider/1420/35 "2019-03-22T04:05:05Z")

</div>

Hi There!

After a few days I have left this project and now I have taken it back.

"_The reason you might not be seeing this data come to Losant is because you are printing the ref value and never returning it."_

I think that I expressed myself incorrectly.  
I do not want to see any value on Losant platform.  
I only need to call the following Particle function from Losant dashboard using commands from Drop down selector and confirm the command with SET SELECTION button.  
Again, I verified the function is operative using particle console.  
Aparently I am loosing the link (settings) to call it from the workflow.

```auto
Particle.function("refSel",selection);

int selection (String command)

{
if(command =="RF1"){
ref=10;
}

 else if(command =="RF2"){
ref=20;
}

else if(command =="RF3"){
ref=30;
}
// And so on
else { Serial1.println(No data);}

Serial1.println("ref:");

Serial1.println(ref);

```

It is something similar to this post :

> [@\[Solved\] Send device command tot Particle.function from dashboard](https://forums.losant.com/t/solved-send-device-command-tot-particle-function-from-dashboard/1473):
>
> I want to call a function on my Particle. I have verified that the function works via the Particle console. However, if i call the function from my Losant dashboard nothing happens. Anybody got an idea what i’m doing wrong? This is my code on the Particle int setTemp (String paramValue) { tempSet = paramValue.toInt(); return 1; This is my dashboard setup.

But the answer doesn’t work for my case.

I just want to send the values RF1, RF2, RF3, RF4, RF5, RF6, RF7 as command arguments to call that function.  
In order to do that I am using a drop-down selector called " SELECT" and a Button called " SET SELECTION"  
I am attaching the corresponding pics to show the settings.

 ![Drop%20Down%20Selector](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/c/c948d87fa8fd494df6f2edf920dcca85911a946f.png)  
 ![SET%20SELECTION](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/f/fbe21bda0dd14516591059d28c2dc83bcdbd3434.png)

 ![SET%20SELECTION](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/f/fbe21bda0dd14516591059d28c2dc83bcdbd3434.png)  
Thank for your help.

---

_[View the full topic](https://forums.losant.com/t/retrieve-value-from-slider/1420)._
