We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
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();
});
});