We have effectively created a new field type which might as well be called "an asynchronous script field".
We can now write simple Rich Text formula fields which are (1) self contained (ie no code page), (2) can execute arbitrary AJAX calls using jQuery or other promise returning methods, (3) does not force a reload the page, (4) allows processing of intermediate responses and (5) reads like synchronous calls:
"<img src onerror='
(async () => {
let xml1 = await Promise.resolve(
$.get(dbidTable1, {...});
);
let xml2 = await Promise.resolve(
$post(dbidTable2, {...});
);
let resp = await fetch(...);
})();
'>"
This is so exciting I might just skip my Haskell meetup tonight!
_______________________________________________________