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 / Checkbox default value...
Power Apps
Unanswered

Checkbox default value based on combobox value

(0) ShareShare
ReportReport
Posted on by 258

Hi,

 

I have two fields in powerapps form.

   1. type - dropdown 

    2.mode - checkboxes - mandatory field

 

I'm stuck here. as an example if in the dropdown(type) select Type A then in the second field(mode) which is consist of multiple checkboxes, Need to check the checkbox which is Sub Z. 

 

Is there any suggestion, really appreciate.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @sachk1 ,
    Have you used a gallery control to display multiple checkboxes. If yes, can you share Items property of the gallery where checkboxes are placed.

     

     

  • sachk1 Profile Picture
    258 on at

    Hi @NandiniBhagya20 ,

     

     

    In the checkboxes field I used dropdown and hide the dropdown. Added the checkboxes and collection method used to save checkbox values.

     

     

    sachk1_0-1685008436087.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @sachk1 ,
    Try using below formula in Default property of checkbox - 

    ThisItem.Value in colCheck || (ThisItem.Value = "Sub Z" && Dropdown3.Selected.Value = "Type A")

    colCheck is the collection name.
    You can replace the first part in the formula (before ||) with formula that is currently added in Default property.

     

     

  • sachk1 Profile Picture
    258 on at

    @NandiniBhagya20  Hi,

     

    I added the above formula to checkbox group default property. Attached the snip here.

    But its shows errors. can you look what is mistake done there. the code also displays on the snip.

    Thank you.error.png

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard