I have a slider that has three settings: 0 1 2
and want to write some text into a Sharepoint list depending on the value.
Now, I put a textbox in the powerapp with 'Slider_BVJ/k_neu' in the text field.
The readout is correct, I can change on the fly from 0 to 1 to 2
Now, if I try to do a logical test in a text box like
'Slider_BVJ/k_neu' = 2
it gives back an error instead of true or false which I would have suspected.
I think that is why my if functions don't work.
Ultimately, I want a certain text
"Ja, problemlos" if the value is 0
"Ja, mit Problemen" if the value is 1
"Nein, auf keinen Fall" if the value is 2
in a form that will update my sharepoint list when I click a button.
First, I'm wondering why the slider value is not working as expected.
Second, I'm wondering what's the proper way to do this
I see 2 ways
1. In the slider write the following lines in "On change"
Set (varaufnahmebvjsneuzahl; 'Slider_BVJ/s_neu');;
Set (varaufnahmebvjneu; if ('Slider_BVJ/s_neu' = 0; "Ja, problemlos"; 'Slider_BVJ/s_neu' = 1; "Ja, mit Problemen"; "Nein, auf keinen Fall");;
2. In the DataCardValue on the form in "Default"
If('Slider_BVJ/s_neu' = 0 ; "Ja, problemlos" ; 'Slider_BVJ/s_neu' = 1 ; "Ja, mit Problemen" ; "Nein, auf keinen Fall")
However, neither works.
Any ideas?