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 / Making one or the othe...
Power Apps
Answered

Making one or the other checkbox required

(0) ShareShare
ReportReport
Posted on by 601

Hello,

 

I am creating a checklist that users fill out in PowerApps and can't figure out exactly how to do what the title says. I'll use the table below to better illustrate what I mean. This is built in a canvas app and there are two columns( In File and N/A) with a check box in each cell for every line item in the checklist. What the business has requested is that one or the other checkbox be required for every line item. Thanks to you some wonderful advice I was able to make the other fields in the form required but I am not sure how to make them conditionally required or not required based on the selection or non selection of the check box. Hopefully that makes sense. Any help is greatly appreciated as always. @wyotim Any thoughts? 😁

       In File                    N/A

  
  
  
  
Categories:
  • CarlHRVA Profile Picture
    601 on at

    It's not liking my table. This is a screenshot of the two columns within the PowerApp.

     

    CarlHRVA_0-1596716739913.png

     

  • Verified answer
    wyotim Profile Picture
    2,545 on at

    Hey @CarlHRVA! If I am thinking about this correctly, I'm not sure how you would enforce the required quality aside from disabling the submit button if one or the other isn't selected. The issue with checkboxes/boolean values is that unchecked/false is a valid response. So disabling the submit button until one or the other is checked seems the best route to me. I'd love to see what other suggestions might pop up though!

     

    If it isn't too much trouble, what about replacing the checkboxes with a radio control with In File and N/A as the values and a blank default value? Would that work on the data side? That would make it so you could use the required property and get the benefit of the form's native error handling. You could maybe hack it a bit by adding a field to your data source for that radio control (like a text field) and then have the radio control check the corresponding box so the boolean values in your data source still work.

     

    That's what I've got off the top of my head. Let me know if it helps or not! I'd be happy to spin up a test app and see what we can do if neither of those work out. Cheers!

  • CarlHRVA Profile Picture
    601 on at

    @wyotim Sorry for the delayed response. I'm going with option 1 of disabling the Submit button until one or the other is selected. This PowerApp is combined with a Flow that is turning their completed form into a Word document so this is the path of least resistance rather than making changes in the PowerApp, data source, and HTML. Thank you as always for a brilliant and thoughtful response!

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard