Can not use code with a success event

I have developed some code in MySQL that saves a value to Local Storage in the success event (local storage.
The code is called SaveFnameToS
This code has a Success Event with the LocalStorage feature.

This code works fine in development mode.

But when I call the program in MySQL with SaveFnameToS.trigger(); I get error messages.

Why is this happening?

Mike

Hi @mdsmith1 ,
Are you still getting errors?

If so, can you share a couple screenshots and the code?

Shawn:
I got some help from ChatGPT and now this is working.
I think I had my code written in a MySQL box when it should have been written in a JS box.
Everything is fine now.
Thank you for following up.
Mike

Good to hear Mike!