[SOLVED] Display Element Breaks Cascading Dropdown - Bug?

I saw this on another thread, but didn't see an answer. When I use the display element on my form, it breaks the cascading dropdown element. Validation doesn't work, either.

I get the following JS error:

Timestamp: 4/3/2014 9:39:58 AM
Error: Error: Script error
http://requirejs.org/docs/errors.html#scripterror
Source File: http://mywebsite/media/com_fabrik/js/lib/require/require.js
Line: 156​

The form is not public, so if a moderator wants to look at it, I will have to send login information.
 
I think I've run into this issue before. There's more than one way to skin a cat.;)

Try using a regular field element - set it to have a default value (same as what you were using for your 'display' element) - and set 'Disable element' to Yes. Then set the label display to none using css. Basically you have the same thing.

(Or maybe instead of 'Disable element' you have to set the 'Read-only' to Yes so it gets saved with the form - I don't remember if the default value will get re-read after a Save or not.)

If they included a 'Hide label' option for a field element there would really be no need for a special 'display' element at all. I think I've suggested this before - and it's probably less work than fixing bugs caused by the element. IMO anything that can be done to make this package smaller is a good thing.
 
I can't replicate.
Are you running a recent GitHub update?
There has been a new require.js version several weeks ago (I can't see a line 156 in the recent one).
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top