How to filter Document ID Field?

Sid_Takali
Kilo Patron
Kilo Patron

Hi all,

How to filter Document ID field that should show only active records? After selecting Table Name field the Document field should return only Active records. 

SiddharamTakali_0-1697546633974.png

 

 

Regards,

Siddharam T

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Sid_Takali 

how does that modal open?

Is it an OOB UI page?

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

Hi @Ankur Bawiskar It is an OOB UI Page. It will open on click of search icon of Document ID field. See below Related Record is a Document ID type field.

SiddharamTakali_0-1697559545879.png

Basically the requirement is  after selecting Table Name field the Document field should return only Active records. 

SiddharamTakali_1-1697559835489.png

 

Regards,

Siddharam

Harsh_Deep
Giga Sage
Giga Sage

Hello @Sid_Takali 

 

I understand. to filter that table you need to go to the dependent table name's dictionary entry and add the attribute tableChoicesScript that calls a script include function. See the dictionary entry for sys_dictionary.choice_table as an example.

 

It points to a script called 

 

find_real_file.png

find_real_file (1).png

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.👍

Hi @Harsh_Deep the solution you proposed is working on Table Name field but I need to apply filter on Document field. Refer below screenshot. Basically the requirement is, on selection of Table Name field the Document field should return only Active records.

Example. On selection of Incident Table Name, Document field should return only Active incident.

SiddharamTakali_0-1697569711474.png

 

Regards,

Siddharam