Filter based on child table custom field

It works!!!

Out of sheer frustration though I changed my setup so that I didn’t need to reference the child table for the filter, which made it easier for me to find a solution. I think I like that setup better, but I’ll use yours for another customization I have planned.

Thank you!

Here is the code I used to filter on a custom field not in a child table:

cur_frm.fields_dict['multi_tc'].grid.get_field('mt_title').get_query = function(doc) {
    return {
        filters: [[
            'Terms and Conditions', 'type', '=', doc.type_select
        ]]
    }
};
1 Like