urbido
Member
I am trying to load form programatically (with JS I do jQuery(".addRecord").click(); ) then I do timeout and fill certain elements with JS. I don't like timeout, so I wanted to fill elements in Fabrik.addEvent("fabrik.form.loaded",form=>{ var myParams,........}), but this code is dependent on function, so I have to run it everytime I execute that function - resulting into form.loaded event trigerred once, twice, three times, and so on.
I also tried to load Form with Fabrik.getWindow and implement function onContentLoaded, but the form was full of errors, since it is form of new row.
Any ideas how to execute Fabrik.addEvent("fabrik.form.loaded",form=>{ var myParams,........}) only once and then let itself be redeclared (with new params) and execute also once? Thanks
I also tried to load Form with Fabrik.getWindow and implement function onContentLoaded, but the form was full of errors, since it is form of new row.
Any ideas how to execute Fabrik.addEvent("fabrik.form.loaded",form=>{ var myParams,........}) only once and then let itself be redeclared (with new params) and execute also once? Thanks