Reference field sowing org.mozilla.javascript.InterpretedFunction

23781A05C5
Tera Contributor

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

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@23781A05C5 

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! 🙏

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

Tanushree Maiti
Mega Patron

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.

 

  1. Navigate to System Definition > Dictionary
  2. Find the record for the Number field on your target table and set Display to false
  3. 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.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

PankajK67712898
Kilo Sage

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