cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KevHouston
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
KevHouston
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!

v-bofeng-msft
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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (4,457)