How do I add data for the autocomplete to recognize in a script column?

juan9
Giga Guru

 

I created a script column.

I would like to add a set of objects that the autocomplete should suggest if the user is typing like shown below

Screenshot 2024-10-19 at 11.54.20 AM.png

 

 

is that possible

3 REPLIES 3

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @juan9 

@not sure if this is what you are looking for..

But have you tried Syntax macros.?

They are used for auto completing commonly used code.

 

please refer the below doc:

https://docs.servicenow.com/bundle/xanadu-application-development/page/script/general-scripting/refe...

 

Please mark the answer as helpful and correct if helped.

Kind Regards,

Ravi 

its close but not what I am looking for I think.
its the editors suggestions that need to be adapted.

 

The OOB script auto complete only completes below items and this cannot be done for custom scripts.

  • Class names
  • Function names
  • Object names
  • Variable names

I think this happens at ServiceNow Code layer level, there's no table) configuration from where we can add out custom code auto complete.

 

Please mark the answer as helpful and correct if helped.

 

Kind Regards,

Ravi