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 / Checkbox value in Disp...
Power Apps
Answered

Checkbox value in DisplayMode = view & edit

(0) ShareShare
ReportReport
Posted on by 901

Happy Wednesday!

What is the best approach to have the checkbox value show up in DisplayMode = View & Edit

 

 

 

Capture.PNG

 

DisplayMode = View

Capture1.PNG

 

SharePoint List

Capture2.PNG

 

I hope I've explained myself clearly.  Thank you in advance.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,530 Most Valuable Professional on at

    Hi @oappdev ,

    Actually Thursday here (11:30am), so a suggestion from the future . . .

    On the Visible property of the Card - try either (replace with your form name)

    YourFormName.Mode <> FormMode.New
    
    OR
    
    YourFormName.Mode = FormMode.View || YourFormName.Mode = FormMode.Edit

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @oappdev ,

    Could you please share a bit more about your scenario?

    Do you add the Checkbox controls inside the TypeOfPerson field data card?

    Do you want to display the TypeOfPerson field data card when your Edit form is in View Mode or Edit Mode?

     

    If you just want to display the TypeOfPerson field data card when your Edit form is in View Mode or Edit Mode, I agree with @WarrenBelz 's thought almost. Please set the Visible property of the TypeOfPerson field data card within the Edit form to following:

    If(
     EditForm1.Mode = FormMode.View || EditForm1.Mode = FormMode.Edit,
     true,
     false
    )

     

    If you want to check corresponding Checkbox based on the "TypeOfPerson" field value within your Edit form or Display form, please take a try with the following workaround:

    Set the Default property of the "Patient" Checkbox to following:

    If(
     ThisItem.'TypeOfPerson'.Value = "Patient",
     true,
     false
    )

    Set OnCheck property of "Patient" Checkbox to following:

    Reset(TeamMemberCheckbox)

     

    Set the Default property of the "Team member" Checkbox to following:

     

    If(
     ThisItem.'TypeOfPerson'.Value = "Team member",
     true,
     false
    )

    set the OnCheck property of "Team member" Checkbox to following:

    Reset(PatientCheckbox)

     

     

    set the Update property of the "TypeOfPerson" field data card to following:

    If(
     PatientCheckBox.Value = true,
     {
     Value: "Patient"
     },
     TeamMemberCheckBox.Value = true,
     {
     Value: "Team member"
     }
    )

     

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • WarrenBelz Profile Picture
    156,530 Most Valuable Professional on at

    Hi @oappdev ,

    and thank you @v-xida-msft for the detailed response a little beyond the question.

    If you try mine, it should work - you do not need the true/false as the test is a yes/no (Boolean) which will translate directly to the related Visible property of the control.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • oappdev Profile Picture
    901 on at

    Thank you so much @v-xida-msft @WarrenBelz Will give it a try and circle back.

    @v-xida-msft 

    my apologies it was late last night when posting. That is correct i did add 2 Checkbox controls inside TypeOfPerson DataCard

    Edit1.PNG

     

    View.PNG

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @oappdev ,

    Have you taken a try with the solution I provided above? Is it helpful in your scenario?

     

    Please take a try with above solution, then check if it could help in your scenario.

     

    Best regards,

  • oappdev Profile Picture
    901 on at

    Thank you @WarrenBelz @v-xida-msft 

  • Teddy1 Profile Picture
    92 on at

    Thanks

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard