Hello,
I have a gallery control that has the following formula on the Items property and is linked to one dropdown and a search field:
If(vUserRole = "SPA" || vUserRole = "VIEW",
SortByColumns(
Search(
Filter(Corp_Com_List, 'SPA ID' = varSPAID), TextInput2.Text, "Provision","Frequency","SubmissionStatus", "Title", "ValidationStatus"),
Dropdown2.SelectedText.Value,
If(
ctxSortDescending,
SortOrder.Ascending,
SortOrder.Descending
)
)
,
SortByColumns(
Search(Corp_Com_List, TextInput2.Text, "Provision","Frequency","SubmissionStatus", "Title", "ValidationStatus", "ValidationStatus"),
Dropdown2.SelectedText.Value,
If(
ctxSortDescending,
SortOrder.Ascending,
SortOrder.Descending
)
))
In addition to the above, I wanted to create separate dropdown fields that stores the relevant statuses of each record, so that users can select a status from the dropdown and only the items in the gallery with that status will be displayed. I have two dropdown fields I want to filter by: one for Validation Status and another for Submission Status. I also wanted to include an option to filter by date range, to see all of the items that were created within a particular period From and to dates , etc. I am not sure what code to use or how to add same to the existing formula above without triggering any errors. Any guidance appreciated.