I have set a custom property for the screen name in the interview:

I want to be able to retrieve this value in the onSubmit function, as on the next page I have a redirect button which has a dynamic URL:
OraclePolicyAutomation.AddExtension({
onSubmit: function(evt) {
var curScreen = evt.interview.currentScreen; //Gives me no property I can examine for name
var curScreenName = globalThis.getCurrentScreenId(); //Works in Chrome developer mode, feels dodgy but gives me the ID at least
if(curScreenName.includes("PersonalDetails"))
{
var strURL = "[http://www.google.com.au](http://www.google.com.au/)";
evt.interview.setInputValue("redirect\_url", strURL);
}
}
});
(on next screen - the last of the interview)

Unfortunately this does not work. How can I get the name of the current screen (if it has been set?). I am on 19B and I think some functionality which returned the ID got removed since 19A (see my post here - please upvote!) so I'm trying to find a workaround.
Thanks for any help..