Hello Fabrik Community
Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.
Exciting times to be sure.
The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section
We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..
Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.
Optional - you can choose an element which will be used to specify the number of repeats for this group. When the value is changed, the form will automatically add/remove groups to the specified number. The element your choose cannot be in a repeat group!
// JavaScript Document
requirejs(['fab/fabrik'], function() {
window.addEvent('domready', function() {
// your code
// Your form reference
var formRef = 'form_10';
// The group you wish to repeat's ID
var groupId = 69;
// The number of times to repeat
var repeatNum = 3;
var form = Fabrik.blocks[formRef];
// Get the repeat group button
var btn = form.getElement('#group' + groupId + ' .addGroup');
if (typeOf(btn) !== 'null') {
// Create mock event
var e = new Event.Mock(btn, 'click');
// Duplicate group
for (var i = 1; i < repeatNum; i++) {
form.duplicateGroup(e);
}
}
});
});
var el = Fabrik.getBlock('form_X').formElements.get('yourtable___repeatcount');
el.update('3');
el.element.fireEvent(el.getChangeEvent(), new Event.Mock(el.element, el.getChangeEvent()));
requirejs(['fab/fabrik'], function() {
Fabrik.addEvent('fabrik.form.group.duplicate.min', function(form) {
form.options.minRepeat[69] = form.options.maxRepeat[69] = form.formElements.get('data_signs___selected_checkboxes').getValue().toInt();
});
});