Hello, I've been using PowerApps for about a year now, first time posting(I'm nervous). I work in a factory.
I'm getting braver at pushing the functionality to what I want powerapps to do.
I am currently trying to have checkboxes auto-select based on if a certain value is present in another box.
I included in my screenshot the screen I am currently working with.
The top box (110T-100N) is a choice based on what the user selects. My list has 300 items to choose from but it is all different combinations of the ingredients below and the recipe is shown by the letters(I marked that as the Ref. in red). I would like to have the text box (highlighted yellow) auto-check the letters that are needed for the recipe based on the value present(underline in blue).
I currently have the OnCheck formula for each individual button as:
The yellow textbox has the formula name:
Which is letting me check the box, then it makes a letter appear in the yellow checkbox to show what the recipe chosen is. Basically, I want to work backward from that and I think I need an If() statement, but I'm not sure how to make it check a box if a value appears in the reference to what the recipe should be...
Ideas on some workaround or fix in my coding? Do I need to explain this differently?
Is this what you're trying to do...
You select "110T-100N". This populates the reference number. You want to make sure the check boxes which populate the yellow field matches that reference number. Is that correct?
If that is the case, I'd just do a lookup on the checkboxes so they will default to the correct option when the "110T is selected". If you're trying to make sure they can't select certain fields, I'd set the displaymode property to a lookup so it will gray out inappropriate selections.
The first step is probably setting up your lookup data. I put in TRUE/FALSE. You can enter in whatever you want.
Here is how your app looks.
For each checkbox, you will write the following code corresponding to the column.
So Checkbox A(Apron) under default will say
If(lookup(DataSource, Item = dropdown1.selected.value,A) = "TRUE", true,false)
And you repeat that for all the checkboxes. It's the same concept to disable options. You would just put it under the display mode section and it would say "displaymode.disabled" or displaymode.edit
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us on June 28 for our monthly User Group leader call!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.