How to filter Document ID Field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 05:41 AM
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.
Regards,
Siddharam T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 06:13 AM
how does that modal open?
Is it an OOB UI page?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 09:18 AM - edited 10-17-2023 09:21 AM
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.
Basically the requirement is after selecting Table Name field the Document field should return only Active records.
Regards,
Siddharam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 09:32 AM
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
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 12:10 PM
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.
Regards,
Siddharam