- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 03:32 AM
Hello All,
I would like to have a field of type "HTML Script" - similar to what we have on Email templates table on a custom table. This will be dependent on another custom table so that I can use ${field_name} notation to substitute the values dynamically while sending emails. Emails? - I am using Notification activity in workflow on this table to send the content of this HTML field.
Currently I am using "HTML" type field which works fine without dynamic substitution.
These developments are in a scoped application.
Any other way to do this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2016 04:17 AM
Apologies. I forgot that I disabled the reference qualifier on the type field to show all fields while doing some development earlier.
NOTE: Do not capture this in an update set! Set your application to Global and update set to Default when doing these next steps!
- Right click on the Type field and select Configure Dictionary.
- Go to the Reference Specification section and set the "Use Reference Qualifier" field to "Simple"
- Save the Record
- Now you can select HTML Script (and other types of fields)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 06:17 AM
That's interesting. I don't have an answer for you on that. I have to wonder if it is because the HTMLSanitizer is running on HTML fields (stripping out video links) and not on the HTML Script fields.
Have you looked in to that? http://wiki.servicenow.com/index.php?title=HTML_Sanitizer