Hide reference field values

shabbir9
Tera Contributor

Hi team

 

we have two custom fields on incident  1.area (check box) 2 scenario (reference---custom_table)we need to show three values (records) in scenario reference field if area check box is true and hide the same three values if check box is false can any one help me in the script how to achieve this

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@shabbir9 

should be an easy reference qualifier; something like this

javascript: var query = ''; if(current.checkBoxField == true) query = 'sys_idINsysId1,sysId2,sysId3'; else query='sys_idNOT INsysId1,sysId2,sysId3'; query;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@shabbir9 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@shabbir9 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader