Spring naar de inhoud
jQuery(document).on('elementor/popup/show', function(e, id, instance) {
let popup = instance.$element;
let scope = popup.hasClass('ff-popup-1') ? '.ff-popup-1' :
popup.hasClass('ff-popup-2') ? '.ff-popup-2' : null;
if (!scope) return;
// Kill old Fluent Forms states
popup.find('.ff-step, .ff_step_tab').removeClass('ff-step-active ff-step-complete');
// Reinit Fluent Forms but scoped
popup.find('.fluentform').each(function() {
if (window.fluentFormApp) {
window.fluentFormApp.initForm(this, scope);
}
});
});