I have created a Power Pages form in which there are two fields (i.e. school type (choice field) and the other is the school name (lookup field) listing all the schools).
The functionality I want to achieve is to filter all the relevant schools based on their types. Any suggestions as to how can I achieve this?
Thanks.
Hi @sobaidullahali ,
You can check out my blog post where I am explaining how you can filter lookup based on another lookup dynamically. You can apply the same logic for your scenario.
Hi @sobaidullahali ,
Suggestion: The simplest and easiest way to achieve this using OOB features is to change your school type (choice) column to a lookup. By doing this you can enable OOB lookup filtration by using Lookup Related records properties. Also, if you have to show your school type (lookup) column as drop down on Portal you can change it using OOB Portal feature to show your lookup as list. By doing this you will have flexibility to add more schools anytime and you don't have to do any changes even if you change any relationship.
On other hand, if you still want to still to your current model and dropping column is not an option then have to add custom script to achieve this, there is no OOB workaround available on Portal side. You check following article to achieve this:
https://oliverrodrigues365.com/2021/01/24/power-apps-portals-custom-lookup-filter/
Feel free to ask, if you have any questions.
Thanks,
Saud
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43