#1 March 5, 2015 4:38pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Filter Database Populated Lists

Would it be possible to add the ability to filter which items appeared in a database populated list? As an extra option in the "Field Options" dialog when creating the field. I'm assuming that the risk of allowing text to be directly injected into the sql statement is why this does not exist. I was thinking an alternative might be something similar to the parser function setup used in views? Then, I would just create a function that is called to weed out the values I don't want and returns the valid ones. Just an idea.

Offline

#2 March 5, 2015 4:45pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 970

Re: Filter Database Populated Lists

Definitely possible! Many to Many fields already have this option with their filter function.

I imagine it would be pretty easy to move it over to a regular list as well. We're mostly feature locked now for the 4.2 branch, but if you post a github issue request I'll try to have it slated for the 4.3 release as a core feature!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.