BUG: Display element + placeholders

s6930064

Member
I have a ?display? element with ?Default? set to ?{fabrik view=list id=2}?

When I open the form I get a JS error ?Uncaught TypeError: Cannot read property 'getElement' of null? from list.js line 1155 (var limitBox =?.)

This error prevents the form submission (save button is no longer working).

Can this js error be fixed?


(using latest Fabrik from Github and Joomla 3.4.3)
 
You can't put a list inside a form, this will create nested form tags.

You can use form intro/outro or you can create a custom (readonly) list template without the form tag.
 
I need to have the list under a form element so intro/outro solution is not an option. Tried troester good idea for a custom list, no form tags and filters but the js error is still there.
The error is present in Chrome but not in Firefox.

I can solve it introducing a if/else check like:
if (this.form != null) {
var limitBox = this.form.getElement('select[name*=limit]');
}
else {
var limitBox = null;
}

This check has also to be done for the 'addRecord' var.

Please consider to include this small if/else check to Fabrik core files.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top