Hello,
i'm creating a staff performance app, i have a drop down in a form which is for selecting/ displaying the performance year i.e. 24/25, 25/26 etc. This info is taken from a sharepoint choice column 'Performance Year'.
I need to be able to filter the selectable items in a new form based on if they are available. I.e. if there is a record for 24/25 then the drop down will filter that out and only show 25/26, 26/27 and so on.
Struggling to find a solution that works for me i have the below which works if i have an item selected in the gallery (in 'items' of drop down), however for a new item nothing will be selected so i need it to go and look at the SP list column and return available values. My SP list is called 'Staff Reviews'.
If(varFormMode=FormMode.New,Filter(Choices([@'Staff Reviews'].'Performance Year'),Not(Value in ThisItem.'Performance Year'.Value)),Choices([@'Staff Reviews'].'Performance Year'))
Help appreciated