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
function doMyThing() {
}
function doMyThing(el) {
// get the element value ...
var v = el.getValue();
}
doMyThing(this);
VM10800:1 Uncaught ReferenceError: doMyThing is not defined
at eval (eval at <anonymous> (elementlist.js:3), <anonymous>:1:1)
at Object.<anonymous> (elementlist.js:3)
at HTMLFormElement.dispatch (jquery.min.js?4485bc…9b18011bfb1cf66ed:2)
at HTMLFormElement.v.handle (jquery.min.js?4485bc…9b18011bfb1cf66ed:2)
var v = event.target.get('value');
if (v === '1' && event.target.checked) {if (v === '1' && event.target.checked)
doMyThing('this');
}else{
console.log('No Check')
}
requirejs(['fab/fabrik'], function (fabrik) {
function doMyThing(el) {
// get the element value ...
var x = el.getValue();
console.log(x);
}
});
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,functio
ReferenceError: doMyThing is not defined[Learn More] elementlist.js line 3 > eval:1:116
Empty string passed to getElementById().
function doMyThing(el) {
// get the element value ...
var x = el.getValue();
console.log(x);
}
doMyThing(this);
// get el value
var v = el.getValue();
// update the element's value ...
el.update('some new value');
// access the element's form object, for example to get other element (like, to check their value)
var anotherEl = el.form.formElements.get('yourtable___some_other_element');
var anotherElValue = anotherEl.getValue();
function doMyThing(el) {
jQuery.each(el.form.formElements, function(key, element) {
if (element.groupid === 123) {
// this element is in group 123 ... base element id is in element.baseElementId
// so do your thing here
}
});
}