I have an application page that uses a custom widget that receives a Javascript variable as one of its property elements.
The return of the variable javaScript occurs after processing API calls, several lines of code to confirm the response, returning a Json. When viewing the return via a text element on the page itself, I can see it perfectly. However, when defining this variable as the custom widget property, I get that the return of my JS variable is not defined, within the controller code I placed a console.log for the property and I get the "undefined".