Hi Adis,
What are you trying to accomplish with this code page and the button where you were previously using IOL? In some instances there aren't one to one replacements if they were using some of the functionality that was specifically problematic. It is often a bit easier to look at what you are trying to accomplish and see if there is now a supported alternative or technique.
To my understanding in general
it is no longer possible to insert JavaScript code to run in a formula field. We encourage JavaScript to be used in Code Pages, but those code pages must be loaded in a separate tab or window for security purposes. So you would create your flow to open up the code page in that new window, have it run the code it was running, and then return your user back to the form. We have some great examples of that kind of flow in our Code Page sample app, you might want to check the examples on using it to run a delay before reloading the page to see how they built that flow. It wouldn't be the exact same flow you have today but depending on what that code page was doing there might be alternatives that have come out since (for example we changed over the last few months the way redirects work and added some new formula functions to solve for some of the common uses of JS). ------------------------------
Evan Martinez
------------------------------