JS error on multiple page form

jfquestiaux

Well-Known Member
I have a joined repeating group as the last page of a multipage form.

This used to work with GitHub 1169 but since last update (1254), I get this JS error when I click on the "next" button on the first page of the form:

Erreur : SyntaxError: syntax error
Fichier Source : http://www.betterliving.be/j3/media/system/js/mootools-core.js
Ligne : 172, Colonne : 1
Code Source :
(<br />

If I set the group to be non-repeating, the form works fine.
 
OK, I tested and found the culprits: I have two calc elements on the first page and unpublishing them make the JS error disapear and I can access all the pages.
Whu they do this though is a mystery.
They are very simple calc, just to concatenate fields :
PHP:
return $data['artists_details___firstname'] . ' ' . $data['artists_details___lastname'];

Setting "calc only on save" on yes or no does not change anything.
 
Perhaps they are causing php notices?
Try replacing with

PHP:
return JArrayHelper::getValue($data, 'artists_details___firstname'] . ' '  . JArrayHelper::getValue($data, 'artists_details___lastname'];
 
Slight syntax error in that, should be:

PHP:
return JArrayHelper::getValue($data, 'artists_details___firstname') . ' '  . JArrayHelper::getValue($data, 'artists_details___lastname');

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top