
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 01:12 AM
I have a simple Document ID Field on form. I added the following script include
var RelationshipScript = Class.create();
RelationshipScript.prototype = {
initialize: function() {},
process: function() {
var tables = ['incident', 'interaction', 'change_request', 'sc_req_item', 'problem'];
return tables;
},
type: 'RelationshipScript'
};
I added the attribute on my Document ID Field as following
tableChoicesScript=RelationshipScript
Why I still see all the tables in the list where I should only see the 5 tables I listed above in my script?
This was adapted from the following post
I also tried with/without "Dependent Field". I still see all the tables in the list, Dependent Field just auto-selects the table but all other tables are still available in the dropdown.
I only want a few tables and not all, how do I achieve that, any ideas?
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 01:29 AM
Hi, just 2 quick thoughts:
1. are you sure the attribute is added to the right field? It should not be added to the Document ID field itself, but to the string field on which the Document ID depends, I believe.
2. could you have a cross-scope issue? Perhaps your include or your table are in different scopes? Have you tried adding scope prefix to the include name?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 01:29 AM
Hi, just 2 quick thoughts:
1. are you sure the attribute is added to the right field? It should not be added to the Document ID field itself, but to the string field on which the Document ID depends, I believe.
2. could you have a cross-scope issue? Perhaps your include or your table are in different scopes? Have you tried adding scope prefix to the include name?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 08:01 AM
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 01:42 AM
Hi,
Can you please share screenshots of your configurations?
Is your field and script include in same application scope?
I hope you have created a field 'Document ID' of type 'Table Name'. This attribute is supported on field of type 'table_name'.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 08:03 AM
Thanks Anil, I was applying the attribute on the Document ID Field itself and not on the Dependent. Cheers