Although lots of users will know this already, some less familiar with JS (like me) may not.
At some point you’ll want to get a value back from
and the Action code itself gives you a big hint,
you might think you don’t have to use a ‘return’ statement in your JS (and maybe you don’t, but I haven’t had any luck without it).
Here’s a screenshot of my code:
and the code:
and the result.