I've created a filtered view for a lookup via javascript that gets it's filter value from a picklist. This works fine except I also want to remove the ability for the user to select one of the System Views.
If I set the View Selector option to Off on the lookup in Form Designer this correctly disables view selection but my filtered view is also included in this exclusion and therefore my filter isn't applied.
How can I use both my custom filtered view whilst also preventing the user from selecting any other system view?
My only idea so far would be to provide a default view with a filter that always returns no records and set this as the only allowable view selection. This will ensure the user only ever gets to select records in my filtered view.
I've arrived at an acceptable solution for this that I'll summarise here for others and will follow up with a blog post that I'll link.
You will now have a lookup that has view selection disabled but it will now show your filtered results.