This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.
Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.
We have reverted the code change and released 4.4.1. V4.4 has been retracted.
Sorry for any inconvenience.
See the details here
/**
* Ensure that Fabrik's loaded
*/
requirejs(['fab/fabrik'], function (Fabrik) {
// The block you want to use
var blockRef = 'form_8';
// Should we use an exact match for the blockRef?
var exact = false;
var form = Fabrik.getBlock(blockRef, exact, function (block) {
// This callback function is run once the block has been loaded.
// The variable 'block' refers to Fabirk.blocks object that controls the form.
var v = block.Elements.get('tablename___elementname').get('value');
// If your element is in a repeat group its name is prefixed with _0, _1, _2 etc - to get all element values in an array....
var values = [];
Object.each(block.Elements, function (element, key) {
if (key.contains('tablename___elementname')) {
values.push(element.get('value'));
}
});
});
});
/**
* Ensure that Fabrik's loaded
*/
requirejs(['fab/fabrik'], function (Fabrik) {
// The block you want to use
var blockRef = 'form_8';
// Should we use an exact match for the blockRef?
var exact = true;
var form = Fabrik.getBlock(blockRef, exact, function (block) {
// This callback function is run once the block has been loaded.
// The variable 'block' refers to Fabirk.blocks object that controls the form.
var v = block.Elements.get('tablename___elementname').get('value');
});
});