Sep 29 2022 12:29 AM - edited Sep 29 2022 12:31 AM
Hello,
I have the following lists
Is it possible to filter out items displayed in the lookup column based on (Active= True) so that, while creating new entry in EmployeeWorkLoad List it won't show deactivated employees in look-up column.
Sep 29 2022 12:35 AM
@New_learner This is not possible using SharePoint out of the box list forms.
You have to customize the list forms using Power apps for this. Then you can change the "items" property of lookup column combo-box/dropdown based on active column. Check below links for more information:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Oct 02 2022 03:25 AM
SolutionOct 02 2022 09:16 PM
I have done like this only.
=IF(Active="true",Name,"")
And it worked as expected.
Thank you for your response.
Mar 16 2023 10:01 AM
Mar 16 2023 11:30 PM
Hi @mobmsc,
no. You just see one blank entry.
Best Regards,
Sven
Mar 17 2023 01:57 AM
@mobmsc @SvenSieverding
Yes, its shows blank rows for inactive employees.
so like If you have 200 employees of which 50 are inactive, the lookup list still shows 200 rows but only the names of 150.
Do you have a solution for this? It will help.
Mar 17 2023 06:19 AM
@New_learner @mobmsc
Given you have a list with 200 entries like this (197 entries that are inactive und 3 that are active)
and with a calculated field calc defined like this
=IF([Active],[Title],"")
If you now create another list with a new lookup column "Lookup" to that list on the field "calc", then that lookup column will look like this on a classic SharePoint form
and like this on a modern form
So only the three active users will be displayed, 197 inactive Users will not be visible.
Best Regards,
Sven