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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard