web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / set toggle control val...
Power Apps
Unanswered

set toggle control value according to value in sharepoint

(0) ShareShare
ReportReport
Posted on by

Hi,

I’m building an app in which i have three toggles in each gallery item to determine if the item should be visible on weekly/monthly and quarterly views.

this is determined by corresponding choice fields in SharePoint (e.g. column name: 'Weekly?', options set: Yes/No).

Have to questions:

  1. i want the toggle to be ON if the value in SharePoint is Yes and OFF if the value is No, any suggestions?
  2. I set the ‘on uncheck’ value of the weekly toggle to update the value in SharePoint to ‘No’, which is working fine, but the toggle keep on switching back to ON, although reset property of the toggle is false

Will appreciate your help

 

Eyal.

 
 

image.png

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    If I understand correctly, I don't think you need to set the default value, you just need to set the Property for Text:

    For Weekly:

    Item: ThisItem.Weekly.Value

    And for Monthly:

    Item: ThisItem.MBR.Value

    For Quarterly:

    Item: ThisItem.QTL.Value

    As the value "Yes/No" is coming from the column value of SharePoint List.

  • EP-29071004-0 Profile Picture
    on at

    Hi @Anonymous ,

    thanks for yourr comment.

    in your reply you wrote "item:..." , actually i dont have item property on the toggle, i used the default property for it and switched it to YesNo column, now its work with default=ThisItem.Weekly.

    now i guess becouse i changed nmy field to YEsNo the patch function is not working, it gives an error that it expect boolean value... not sure what to do.

     

    did i missed somthing can it work also if i leave the fields as choice?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard