Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to add filter to the g_modal reference field in workspace UI Action

Shweta44
Tera Contributor

I have an UI Action button on my workspace. I am using the g_modal shown script shown below. I want to filter the 'Group' table in the "reference" Assignment group field to only show certain records from that table.

Is there any way to achieve this?
Any help is appreciated.

var fields = [{
                type: 'reference',
                name: 'assignment_group',
                label: getMessage('Assignment group'),
                mandatory: true,
                reference: 'sys_user_group',
                referringTable: 'sn_hr_core_case',
                referringRecordId: g_form.getUniqueValue()
            },

 

2 REPLIES 2

BharathChintala
Mega Sage

@Shweta44 

add one more line like this

"query" : "type=itil",
If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala