Script Field Type

samratg
Tera Contributor

Hi , I can see we have 2 type for a script field -  script and script(plain).
what is difference between script and script(plain). 

If I open Client Script and go to configure dictionary in Script field, then type is - Script(plain) but when we go to Business Rule and do configure dictionary in Script field, then script field is - Script. 
Client Script

samratg_2-1749184148546.png

 


Business Rule 

samratg_1-1749184095659.png

 

Is there any major difference or we can use any we want? 

2 ACCEPTED SOLUTIONS

Iraj Shaikh
Mega Sage
Mega Sage

Hi @samratg,

Refer below link - 
https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/reference-page...

 

Script - Text field that accepts JavaScript code input and provides controls, such as syntax checking and formatting. It also provides a list of fields and server APIs. You must specify a dependent field that references the table name for the list of fields.

Script (Plain) - Text field that accepts JavaScript code input and provides controls, such as syntax checking and formatting.

View solution in original post

Chaitanya ILCR
Kilo Patron

Hi @samratg ,

 

Here is a really good video about script fields (actual topic stats at around 7mins 30 secs)

Happy learning 🙂

https://www.youtube.com/watch?v=9ifArzAI0BU

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

There are times when you need to write script, and there are times when you need a script to run another script. Chuck will show you how you can add script fields to your record and run them server-side to give a whole lot of power to your app. Join us Mondays and Thursdays at 2PM UTC. Episode ...
3 REPLIES 3

Iraj Shaikh
Mega Sage
Mega Sage

Hi @samratg,

Refer below link - 
https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/reference-page...

 

Script - Text field that accepts JavaScript code input and provides controls, such as syntax checking and formatting. It also provides a list of fields and server APIs. You must specify a dependent field that references the table name for the list of fields.

Script (Plain) - Text field that accepts JavaScript code input and provides controls, such as syntax checking and formatting.

Chaitanya ILCR
Kilo Patron

Hi @samratg ,

 

Here is a really good video about script fields (actual topic stats at around 7mins 30 secs)

Happy learning 🙂

https://www.youtube.com/watch?v=9ifArzAI0BU

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

There are times when you need to write script, and there are times when you need a script to run another script. Chuck will show you how you can add script fields to your record and run them server-side to give a whole lot of power to your app. Join us Mondays and Thursdays at 2PM UTC. Episode ...

Ankur Bawiskar
Tera Patron
Tera Patron

@samratg 

check the video shared by @Chaitanya ILCR 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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