ajax update: get element value from main group

mirceat

Member
Hello,

I have a form with a main group and few repeated groups.

In the main group there is a dbjoin element that retrieve data from database. In the second group there is another dbjoin element that should get the value from database and filter the data based on the main dbjoin element value via Ajax update.

This "ajax update" it doesn't happen, the dbjoin element from repeated group is empty, I have to create a calc element in the repeated group in order to trigger the value from main group element.

Please note that this is just an example, in real life the form is having several repeated groups and at least 3 of it need the value of the main element. That mean a calc element for each repeat group and a mootools-core.js loaded several times (see attached image) and in the end, a slow loading time.

It is possible to get the value from the main dbjoin element without any other "triggers" in the repeated groups?

J! 3.10.6, fabrik github version (updated last month), php 7.4.27

Thank you
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    131.1 KB · Views: 64
It's working on my site.
What is your setup of the main dbjoin, of the dbjoin in the repeat group?
 
Last edited:
Hello,

Please see attached images
 

Attachments

  • dbjoin_main_group.jpg
    dbjoin_main_group.jpg
    26.5 KB · Views: 59
  • dbjoin_repeat_group.jpg
    dbjoin_repeat_group.jpg
    34.2 KB · Views: 62
Did you check for typos in the element name, for "Apply where" settings?

What do you expect with an Ajax update on dbjoin_main? With your data-where condition there's nothing to update.

Is dbjoin_main a standard dropdown?
 
Sorry, i gave you the data from dev site instead of live :)

Yes, dbjoin_main is a standard dropdown. There are no typos errors in "apply where"
 

Attachments

  • dbjoin_main_group.jpg
    dbjoin_main_group.jpg
    121.7 KB · Views: 57
As I said: it's working here.
I meant typos in your data-where.
Enable Fabrikdebug and see what you get.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top