Ecmascript 2021 in UI pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago - last edited 4 hours ago
[Yokohama]
I've got a UI page in the global scope, and I'd really like to use optional chaining in the HTML evaluate tags.
Regardless whether that's supported, the toggle at the top of the form "Turn on ECMAScript 2021 (ES12) mode" always flips back to .false. after saving the form.
I've looked in the sys_es_latest_script table, and no records were updated. I manually created a record there for the UI page, but upon reloading it still is marked false.
Is this a known issue with UI pages? Is there a workaround?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Ecmascript 2021 support in the Global application was introduced somewhere around the Utah release, but is not operational until Zurich.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I thought this was supposed to be operational as of Xanadu, and despite some linter issues, it seems to be working.
Can you provide a source for the "operational in Zurich" statement? What exactly is being fixed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
This KB pretty well summarizes the issues I've seen, but not just in Fix Scripts.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1699139 and there's a problem record PRB1794568.