cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Update Choice field with Slider value

Hi, 

I started with a choice field for a Priority selection, with 1-4 as options. I thought a slider would be nicer, so created a rating field in SP list, changed it to a slider on the PowerApps modified SP list form, with the same 1-4 values.

I am struggling to update the choice field with the value selected on the slider. Ideally I want to hide the choice field from view, to be used in list post-submission.

The fields I have are;

KevHouston_1-1593072346464.png

Thanks in advance!



 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @KevHouston :

Please set the Request Priority_DataCard2's Update property instead of Rating silder _DataCard2's Update property.

Rating silder _DataCard2 updates the Rating silder field, and this field is of numeric type. You cannot use a record to update this field.

Best Regards,

Bof

View solution in original post

4 REPLIES 4
Frequent Visitor

Hi - I was being blind to the fact I can simpy use the rating field, removing the need for the choice field. Sorted!

Community Support
Community Support

Hi @KevHouston :
Do you want to update a Choices field in SPlist with the value of a Slider?

This can be achieved by changing the UpDate property of the data card,I've made a test for your reference:

Set the Request Priority_DataCard2's Update property to:

 

LookUp(Choices(yourdatasource.'Request Priority'),Value=Text(DataCareValue21.Value))

 

1.JPG2.JPG

Best Regards,

Bof

Hi @v-bofeng-msft Bof, 


Thanks very much for the response.

I has since deleted the SP list choice field, so recreated a further field 'RequestedPriority' and added it to the screen below the slider.

 

Following your Update approach, the formula complains about expecting a number, although the value results shown appear to be correct, with 4 in the screen capture below.

 

Can you see where I am going wrong? Appreciate your support.

KevHouston_0-1593178317670.pngKevHouston_1-1593178346921.png

 

Hi @KevHouston :

Please set the Request Priority_DataCard2's Update property instead of Rating silder _DataCard2's Update property.

Rating silder _DataCard2 updates the Rating silder field, and this field is of numeric type. You cannot use a record to update this field.

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (53,244)