Sorry, I can’t do an in-depth look at the technical details at the moment, but:
Have you looked at the ‘filter_value_map’ parameter of the filter? It lets you add a function to pre-parse the filter value to another format before iteratively passing the new format to the filter function. Example:
filter_value_map: function(datestring) {
return datestring.get_time();
}
Also, in your copy of Self-Study, try adding support for validation and let me know if you get it working, and I’ll merge it. Example:
case 'text':
case 'number':
case 'input':
flt_content[src_name+'_flt_'+flt_name] = {
type:flt.type,
label:flt.label,
validate: flt.validate, //Add validation func from filter
placeholder:flt.placeholder,
default:flt.default,
path:'@ipresets[@active_ipreset].content["'+src_name+'"].filters["'+flt_name+'"].value',
hover_tip:flt.hover_tip
}
break;