A dropdown dependent on another

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
zupidupi
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Wed Apr 19, 2006 7:03 pm

A dropdown dependent on another

Post by zupidupi » Thu Jan 27, 2022 6:37 pm

Hi.

This is probably a pretty standard question.

I have two dropdowns in my component. When the user selects a value in dropdown #1 the choices in dropdown #2 should be updated. The values are stored and properly linked in two tables in my database, so retrieving them is easy.

Any good pointers/examples to how this could be achieved in Joomla?

wonders

mike

zupidupi
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Wed Apr 19, 2006 7:03 pm

Re: A dropdown dependent on another

Post by zupidupi » Thu Jan 27, 2022 7:37 pm

Well, I managed to figure it out all by myself! Some fiddling around with the 'showon'-attribute as described here

https://docs.joomla.org/List_form_field_type

solved the matter nicely. I built the xml-code dynamically...works well enough.


Locked

Return to “Joomla! 4.x Coding”