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 / Patching CheckBox True...
Power Apps
Answered

Patching CheckBox True/False to SP results in all checkbox values as true

(0) ShareShare
ReportReport
Posted on by 53

My app has a series of checkboxes.  I need the true/false values to Patch to an SP list.  I have corresponding Yes/No columns in SP for these.  When I patch, the value of every checkbox shows true.  There is a snippet of the code below:

 

Patch(
ContactReportData,
Defaults(ContactReportData),
{
Title: RetailerSearch.Text,
RtlName: RetailerNameInputBackup.Text,
VisitType: VisitTypeSelection.Selected,
VisitStartDate: StartVisitDate.SelectedDate,
VisitEndDate: EndVisitDate.SelectedDate,
RtlCertified: CertifiedToggle.Value,
RtlCertDate: CertEvalDatePicker.SelectedDate,
RtlPrincipalNA: RPCheckNotApplicableCheck.Value,
RtlPrincipal: RPEntry.Text,
RtlPrincipalWasNotPresent: RPNotPresentCheck.Value,
RtlPrincipalDay1: RPDay1Check.Value,
RtlPrincipalDay2: RPDay2Check.Value,
RtlPrincipalDay3: RPDay3Check.Value,
RtlPrincipalClosingMeeting: RPClosingMeetingCheck.Value,

 

The bolded values Patch as True when they are not checked.

 

Any ideas?

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @scottypotty4x4  ,

     

    This could be because you have set the default value as Yes in your list. Please check the default value in your list and update it to No , if you want the default value to be No.

     

    If this helps , please give this answer a thumbs up and accept this as a solution.

     

    Thanks,

    Sanmesh

  • scottypotty4x4 Profile Picture
    53 on at

     The default values are all controlled by variables that are set to false in the OnStart of the app:

     

    Set(varRtlPrincipalNA,false);
    Set(varRtlPrincipalWasNotPresent,false);
    Set(varRtlPrincipalDay1,false);
    Set(varRtlPrincipalDay2,false);
    Set(varRtlPrincipalDay3,false);
    Set(varRtlPrincipalClosingMeeting,false);

  • Verified answer
    SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @scottypotty4x4  ,

     

    Hope you have checked the default values in the SharePoint list as well.

     

    booleancolumn.png

     

    Hope this helps!

     

    Thanks,

    Sanmesh

  • scottypotty4x4 Profile Picture
    53 on at

    Perfect thank you!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard