JavaScript instructions disappear!

RobertG

Member
Hi,

On a group I have a date plugin element. I calculate a date and want to show or hide elements and group.
I used 4 JavaScript instructions: when the value is zero: hide, else show. It worked fine.
But this morning, these 4 instructions are no more displayed in the JavaScript tab.
What mistake could I have made, especially as I don't remember changing this date element in the meantime?

I previously had such errors but that was probably my fault.
 
Hard to say.
If element loading is not complete it will show "Please wait..." until you can do anything. So it should not be possible to re-save the element with "unloaded" JS actions.

Are you looking at the correct element?

Element JS actions are stored in the table #__fabrik_jsactions, the predefined actions will be in "params"
 
Thanks!

I tried with the parent element and the child.
But it seems that somewhere some JS code is working, because date change can display or hide the details of another tab.
 
Oh, sorry, it was not the date element but a calc element that used these JS instructions! :(

With this calc, I want to hide or show a "display plugin" element: it works.
I want to hide or display a group and can't hide the tab, only the details, using "yes but hidden only details" option.
Which option should I use to hide or show the full tab?

If I use "hidden form only" the tab is not shown but the JS can't display it.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top