How to define filter on a reference field when using g_modal on a Workspace UI Action

Daniel Szabo
Tera Contributor

So, I'm currently configuring a new Workspace UI action, showing a modal pane to collect specific details. One of the fields would be to collect a user via reference field. I can create the fields, but I don't know how to add any filter condition for the reference variable. Any ideas how to do it, which attribute to add to the field definition?

So assuming I'm having the following field definition:

{
	type: 'reference',
	name: 'caller_id',
	label: getMessage('Select someone'),
	mandatory: true,
	reference: 'sys_user',
	referringTable: 'incident',
	referringRecordId: g_form.getUniqueValue(),
	value: g_form.getValue('caller_id'),
	displayValue: g_form.getDisplayValue('caller_id')
}

How to add a filter that will only show people whose first name starts with "S" for example?

 

3 REPLIES 3

Pearl Vina Pila
Tera Contributor

were you able to find answers? 

anas_m
Tera Contributor

Hi, @Daniel Szabo 

 

Were you able to find an answer, please ?

 

Many thanks

Hi,

Unfortunately no, this requirement was dropped by customer.