Fabrik.addEvent fabrik.form.group.duplicate.end

Hello

I use this event in form_x.js to trigger an event which populates labels after a function has inserted repeat groups.
It works great.

However when the user saves the record and then reopens it for editing the 'fabrik.form.group.duplicate.end' does not fire.

I assume this is because there are no repeats actually 'added'.

What would be the best way to fire my event in this circumstance?
 
I assume this is because there are no repeats actually 'added'.
Yes.

What would be the best way to fire my event in this circumstance?
New function onChange attchechet on element which will be changed

or

Move your function out of 'fabrik.form.group.duplicate.end'. To fire function on Fabrik.form.group.duplicate.end just do:

Fabrik.addEvent('fabrik.form.group.duplicate.end', function(form, event) {
your_function();
});
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top