UI Action onClick not working

MC1
Tera Contributor

I created a UI Action for a custom table to generate a printable version of a form. It works just fine. I tried using the exact same configuration for a UI Action for another table. The only difference is the table name, but this one doesn't do anything at all. From looking in Chrome's developer tools, I see that the printPreview function isn't being recognized.

MC1_0-1689177818277.pngMC1_1-1689177859856.pngMC1_2-1689177876233.png

 

6 REPLIES 6

Isabela Loebel
Tera Contributor

Hi @MC1,

Did you solve this error? I'm having the same situation and I don't know how to fix it, if you solved it, please, post here.


Thanks,
Isabela Loebel .

EstianYssel
Tera Contributor

I had the same problem

The issue was that in one of my "Client" UI Actions on the form, a server side "gs.addInfoMessage" function was used for debugging.

Since this is a Client Script all other client "onClick" scripts on the form were no longer working.

Removing this debug statement solved the issue.