Ecmascript 2021 in UI pages

Stephen W_
Giga Guru

[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?

5 REPLIES 5

Brad Bowman
Kilo Patron
Kilo Patron

Ecmascript 2021 support in the Global application was introduced somewhere around the Utah release, but is not operational until Zurich.

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?

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.