Inserting javascript into a field via code without executing the code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 06:54 AM
I want to create a Catalog Item variable via code and in the "default_value" field, there should be the following code:
But when I create the Catalog Item variable by code in a UI Policy like this:
then the "default_value" does not contain
and instead it contains the sys_id of the logged in user.
So is there a way to insert javascript code into the default_value field via code without the code being executed?
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 03:26 AM
it did work for me when I ran this yesterday and inserted with the exact thing which you wanted
If my response helped please mark it correct and close the thread so that it benefits future readers.