cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tbruns
Post Patron
Post Patron

Yes/No Toggle Button in Powerapps will not populate the Sharepoint List

I have a Sharepoint List that I created a Canvas App from. In Sharepoint I have a list that has a Yes/No (Checkbox) column. In my PowerApp I inserted a Toggle and changed Onselect to Yes.

My issue is that when I click the toggle (Yes) it does not populate "Yes" in my Sharepoint list. It populates "no" no matter if the toggle is on or off.  How do I get it to populate in the list?

 

Tbruns_0-1600787395528.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Tbruns ,

Do you want to use toggle to update a yes/no field in sharepoint list?
I've made a similar test but not met the same problem.

Here's my test for your reference:
1)the field's setting:
9241.PNG

 2)toggle's truetext: "Yes"

toggle's falsetext: "No"

datacard's Update:

DataCardValue22.Value

//DataCardValue22 is toggle's name

daracard's Default:

ThisItem.yesno

//yesno is this field name

3)Everytime you update data, you need to refresh your page before you checking in sharepoint list.

Or else, you will not view the latest data.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
GarethPrisk
Resident Rockstar
Resident Rockstar

Is this a Form?

Did you add controls to create your own 'form'?

 

What is the OnSelect formula specifically? You mentioned "I inserted a Toggle and changed Onselect to Yes" - do you mean True? Additionally, the OnSelect function is invoked when you click on the control (regardless of actual value).

 

We'll need to figure out how that Toggle is wired up, and then how it's being passed back to SharePoint. Should be straight-foward!

@GarethPrisk 

Yes it is a form. I added them from the Sharepoint List.

 

Yes you are correct, the OnSelect is True. I meant to say I changed the TrueText to "Yes" and FalseText to "No" (instead of On and Off)

 

Hi @Tbruns ,

Do you want to use toggle to update a yes/no field in sharepoint list?
I've made a similar test but not met the same problem.

Here's my test for your reference:
1)the field's setting:
9241.PNG

 2)toggle's truetext: "Yes"

toggle's falsetext: "No"

datacard's Update:

DataCardValue22.Value

//DataCardValue22 is toggle's name

daracard's Default:

ThisItem.yesno

//yesno is this field name

3)Everytime you update data, you need to refresh your page before you checking in sharepoint list.

Or else, you will not view the latest data.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,024)