Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 02:09 AM
Hello,
I am working on a Record Producer in ServiceNow where I have two variables:
- Master Table (Dropdown List) → Contains tables like Incident, Problem, Task, etc.
- Select Fields (Reference ) → Should dynamically show the fields from the selected table.
Requirement:
- When I select a table in Master Table, the Select Fields variable should populate the fields available in that table dynamically.
Issues I am facing:
- How can I retrieve fields dynamically based on the selected table?
- What script should I use in the on Change or Script Include to fetch fields?
Can anyone help with the best approach and provide a sample script for this?
And one more thing the scope which i am using is not global it is other
Thanks in advance!
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 04:04 AM
Hi @TEJAS ,You can write a reference qualified in the field 'Select Field' -
javascript:'name='+current.variables.master_table.name;
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 04:04 AM
Hi @TEJAS ,You can write a reference qualified in the field 'Select Field' -
javascript:'name='+current.variables.master_table.name;