Skip to main content
added 2 characters in body; edited tags
Source Link
Ganesh Sanap - MVP
  • 46.4k
  • 22
  • 31
  • 63

I have a PowerApps form where I've added some checkboxes, and I want to reference a dropdown field's selection for those checkbox default values. The issue I'm having is that the choice field is multi-select. If it weren't I could just go to each checkbox and set its default property to If(DatacardValue37.Selected.Value = "Advisory", true, false)If(DatacardValue37.Selected.Value = "Advisory", true, false). But this only works if ONLY that choice is selected.

My question is, is there a way to write this default value that will say If(DatacardValue37.Selected.Value Contains "Advisory", true, false? Not sure how to apprach this.

Thanks for the help.

I have a PowerApps form where I've added some checkboxes, and I want to reference a dropdown field's selection for those checkbox default values. The issue I'm having is that the choice field is multi-select. If it weren't I could just go to each checkbox and set its default property to If(DatacardValue37.Selected.Value = "Advisory", true, false). But this only works if ONLY that choice is selected.

My question is, is there a way to write this default value that will say If(DatacardValue37.Selected.Value Contains "Advisory", true, false? Not sure how to apprach this.

Thanks for the help.

I have a PowerApps form where I've added some checkboxes, and I want to reference a dropdown field's selection for those checkbox default values. The issue I'm having is that the choice field is multi-select. If it weren't I could just go to each checkbox and set its default property to If(DatacardValue37.Selected.Value = "Advisory", true, false). But this only works if ONLY that choice is selected.

My question is, is there a way to write this default value that will say If(DatacardValue37.Selected.Value Contains "Advisory", true, false? Not sure how to apprach this.

Thanks for the help.

Source Link
Quilly
  • 445
  • 2
  • 24
  • 52

PowerApps - How to write a "Contains" statement

I have a PowerApps form where I've added some checkboxes, and I want to reference a dropdown field's selection for those checkbox default values. The issue I'm having is that the choice field is multi-select. If it weren't I could just go to each checkbox and set its default property to If(DatacardValue37.Selected.Value = "Advisory", true, false). But this only works if ONLY that choice is selected.

My question is, is there a way to write this default value that will say If(DatacardValue37.Selected.Value Contains "Advisory", true, false? Not sure how to apprach this.

Thanks for the help.