• New Commercial Services Section

    We have now opened a commercial services section here on the forum. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.

    Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.

Javascript on predefined action not working

bea

Active Member
Hi,
I have continued to get into F3.1 and noticed that the JavaScript on element is not working. I have made a predefined Js action with load and change to show a hidden group if the value is >= 1.

Cheers,
Bianka
 
Hi troester,
many thanks for reply. I did it in Fabrik 2 and maybe it doesn't work in F3.1.
I have made a test with group shown and js hide onload and onchange, but without success.
It seems, that the js has no effect on groups.

Cheers,
Bianka
 
My element type is a dbjoin and js action onload/onchange schould show the next group.
I guess, that your "show" is the value???
 

Attachments

  • Screen Shot 2014-09-23 at 15.19.57.png
    Screen Shot 2014-09-23 at 15.19.57.png
    31.4 KB · Views: 245
My "show" is just text in a field element.
But it's working with dbjoin, too (with value in the JS field).

So your group is not set to hidden, accessible by the user...?
Any other JS on this form?
Are you using standard Joomla template, Fabrik bootstrap form?
Any JS errors?
Do you have a link?
 
There was an js error on another element, but it still doesn't work on dbjoin.
I have made a test with a field element and this works fine, if the group is not hidden.

But there is something different to F2. I could show up a hidden group, when enter a value or select a dropdown in F2.
Now in F3.1 I can't set up same js to 3 different elements (field) to show up a hidden group when value is greater than 0.
If one of these elements is '0', than the group is hidden. Maybe F3.1 needs a form js, but this make no sense for simple hide and show action.

Cheers,
Bianka
 
In F3 you can't show a hidden group via JS, this may be different to F2 (I don't know).

Not sure what you mean with JS on 3 elements.
What do you expect if element1 =0 says "hide" and element2 !=0 says "show"?
I assume in this case you'll need some custom JS doing ORs or ANDs (but I'm really no JS specialist).
 
Hi,
I have added the information to my_sites and should be visible for you.
Many thanks
Bianka
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top