• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Cascadingdropdown add new entries from front end

enrb

Member
Hello everybody,
it is possible through a link element, or calc, or display,
create a button to add items to a cascadingdropdown element?

For the databasejoin type element it is possible to activate the option through the "Add option in front end" tab, I would like to be able to do more or less the same thing for the cascadingdropdown element.
 
Instead of a CCD, you may want to consider using another dbjoin element with "AJAX Update" and "Data where", and then you should be able to have options added in the frontend, too.
 
Good morning,
I tried but unfortunately it doesn't work...

In my orders table, I have a brand name element of type databasejoin which generates a list for choosing the brand...
Also in the orders table, I had a model name element of the cascadingdropdown type to be able to choose the models related to the chosen brand.

As recommended, I also tried to make a databasejoin with a where clause for the model element, also activating the AJAX Update option, but in any case when I change the brand, in the model element I see the list of all the models and not just those belonging to to the chosen brand.

In the where clause I put:
WHERE {thistable}.`brand` = '{dkgest_model___brand}'


Am I missing something?
 
...when I change the brand, in the model element I see the list of all the models and not just those belonging to to the chosen brand.
Sounds strange, because usually if something goes wrong, you'd rather get no options at all. So, you should double-check in the DB if {thistable}.`brand` and '{dkgest_model___brand}' are really the same type of values.
With your symptom (ALL models listed) it's likely not going to fix it, but maybe try it with "_raw" appended anyway:
WHERE {thistable}.`brand` = '{dkgest_model___brand_raw}'
 
I managed to fix the problem...

In the WHERE clause I must not use {thistable}.`brand`, but rather {dkgest_order___brand}...

So here's what I wrote in DATA WHERE:

WHERE '{dkgest_order___brand}' = dkgest_model.`brand`

this way it works.
 
Ho ancora un problema con questo elemento, voglio visualizzarlo nell'elenco con l'opzione Filter type-Dropdown, ma sfortunatamente nell'elenco il filtro non mostra alcun dato da scegliere.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top