This is likely very simple (if it's even possible) but I am extremely new to PowerApps so please bear with me.
I am building a PowerApp (not customized form) connected to a Sharepoint List on the back-end.
I have a Combobox on a Datacard called 'cbDivision' that is pulling a list of numbers from SharePoint as such:
100
P100
200
P200
so on and so forth.
I have a on/off toggle called 'tglProposal' which will be controlled by the user whether it is a proposal being submitted or not.
What I want to do:
If the toggle is turned off, I want the combobox items to only show the '100,200,300'..etc rows. When the toggle is turned on, I only want the combobox to show the 'P100, P200, P300...' rows.
What I have so far:
in the Items property of the 'cbDivision' Combobox, I have:
If(tglProposal.Value= false ,Choices([@'GIS and Drafting Workflow'].Division),tglProposal.Value= true,Choices([@'GIS and Drafting Workflow'].Division,"P100"))
This works and gives me the desired result, but only P100 is shown, as expected. However, no matter what syntax I try, I cannot add MORE than one searchtext in the Choices(column, searchtext). Am I missing some available syntax? Is this even possible?
Is there an easier way to accomplish what I'm trying to do?
I can provide any screenshot or additional detail if necessary
Thank you very much for reading