You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Using Javascript in Widget

Received Response
13
Views
2
Comments
edited Sep 23, 2020 7:13PM in Integrations and APIs 2 comments

Summary

I am needing to call a function in a widgets javascript.

Content

I am using a product category notification manager widget and I am trying to add my own Yes/No button validation. I found the function in the widgets javascript that does what I need. But I cannot attach that function to my Yes button. I have also tried making my own ajax call but it seems the "this" is set somewhere unknown to me. I assume in the controller but I couldn't see how to pull it out and use it myself. I might be missing some fundamentals as I do not understand how these functions are attached initially. This might

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!