Reference field sowing org.mozilla.javascript.InterpretedFunction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hi,
I am creating a custom application called SaddlePass in ServiceNow PDI.
I created a Student table and used it as the reference field in another table. Bute instead of showing the student name its shows:
org.mozilla.javascript.InterpretedFunction
I already checked:
- Student Name field is type of string
- Display = true
- Records saved correctly where the record data is showing but while reference its showing this org.mozillajavascript one
Can someone help me fix this issue.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
is that table task extended?
PDIs are highly un reliable so I will suggest to clear cache using cache.do and then logout and login again
if doesn't work then get new PDI
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @23781A05C5
If you want the referenced table to display the name instead of the number on every form where it’s used as a reference, update the display attribute for the name and number fields in the dictionary.
If the table extends the Task table, make the change through a dictionary override instead of modifying the base dictionary entries directly.
- Navigate to System Definition > Dictionary.
- Find the record for the Number field on your target table and set Display to false
- Find the record for the Name field on your target table and set Display to true
Let me know what result you are getting after this change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @23781A05C5 ,
Can you check if you are using the correct javascript code for the student ID field in your custom table to autoincrement the value.
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Pankaj Kumar
