Defect report: Element -> Javascript: Unable to save

I am using JM 3.2, FB 3.1 RC2.

When creating an element, and trying to save a javascript (using the 'or Using a predefined action') I am unable to save the script.

When I save the script, the message implies a successful save, but when the script is re-opened, there is no sign of the script.

To investigate this, I dumped the SQL file for all tables (PHP Admin). There was evidence of a trace of the transaction in the jm32_session table. But nowhere else.

I imagined that this may be a problem that has crept into the JM 3.2 version.

I examined FB 3.0 and FB 2.0 (i.e. for JM 2.5 and JM 1.5, respectively), but the same problem is present in those versions.

So - either I do not appreciate what it takes to save a javascript, or else there is a latent problem here that needs to be resolved.

I have examined other threads on this topic, but the issue resolution seems unclear.

Alastair
 
I can't replicate.
In Fabrik3.1 (3.1rc2 + recent GitHub) element's JS is saving and reopening correctly, same in the older versions where I've used this at several places.

Can you see a JS error in your browser?
Which browser are you using?
Element's JS is stored in #_fabrik_jsactions.
 
Thank you for the quick response.

I was running on a localhost when I conducted the initial tests - so I suspected my environment might be a problem.

I have now set up an accessible server version (http://spilab.spi-prototype.co.za) as a trial.

I set up a clean versions of J! 3.2.

I set a clean version of FB 3.1 RC2 - and loaded the latest github version.

I loaded the FB sample data - to set a up a defined test case environment.

To test the javascript behavior:

In Elements -> Group (select Contact Details) - Element (select the id row)

Select JavaScript -> select Add - Select 'or Use a predefined action'

Enter the following values:

If this element: Select '>'
Value: Enter '0' (i.e. zero)
Action: Select 'hide'
Element: Select #contact_sample_id

Click Save.

Message "Item successfully saved'

Result: Used PHPAdmin to look in the db tables: Select #fabric_jsactions

The table is empty.

So - the javascript is not being saved.

Am I missing something?

If you would access to the site backend, please provide your email address and I will supply directly the admin credentials.

Kind regards,

Alastair

PS - Browsers used: Firefox 15.0.1; IE 11
I turned on the J! debug, and Fabrik debug - but no errors are reported.
 
Am I missing something?
Yes, you have to select an "Event", too (and Fabrik doesn't report it, seems a validation is missing here).
BTW: not sure what will happen if you really are hiding the id element (better take an other one for testing).
 
OK! I get it!

I did not connect the Event with the second part! I read the 'or' in isolation.

Thank you very much!

Alastair

PS - the selection of id was incidental - for illustrative purposes only.
 
PR1129 submitted to enhance messages.

Once this has been merged when you update from GitHub you will get an enhanced message if you have not selected an event.
 
Same problem with script error on admin (after element save)
index.php


Best regards
 

Attachments

  • Fabrik-ERROR-Adding JavaScript to an element.jpg
    Fabrik-ERROR-Adding JavaScript to an element.jpg
    53.6 KB · Views: 269
Are you running a recent Github update?
Did you select an event?

gesendet mit Tapatalk
 
Hello Troester, thank you for this quick reply
Yes i selected an event
No i'm not running a recent Github update :-(, i'll try to do it and come back to you
Regards
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top