Hi everyone,
I have an issue that I really do not understand :
In my form, I have a control on which I need to bind an event handler on the change property :
NWF.FormFiller.Events.RegisterAfterReady(function () { console.log(NWF$(".ShareOverviewPanel .rpt_185_ISINcode")); NWF$(".ShareOverviewPanel .rpt_185_ISINcode").on("change", function () { RptLoadValues(); }); });
My control exists in the first log, but the subscription on the 'change' is never active : RptLoadValues() is never called.
When I copy-paste the code inside the browser console, the event handler is bond, and I have no issue and everything works fine.
Code pasted in the browser console:
NWF$(".ShareOverviewPanel .rpt_185_ISINcode").on("change", function () { RptLoadValues(); });
I spent an enormous amount of time trying to figure out what's happening.
The form is quite big, I was thinking about a race issue (loading of asynchronous controls), but even with a 15 seconds, there's not avail.
Am I missing something here ?
@MegaJerk I know you excell in that kind of things ;)