What I'm finding is that calling a script function doesn't work for OnDismissAction, instead it errors in the log with Not a valid function name: <name of function>. Is this expected and is there any other way to trigger a script function on dismiss?
Eg: this fails (it makes no difference changing the function name):