Solved

Dropdown List for Webpage on my Joomla Website

Posted on 2016-08-02
4
92 Views
Last Modified: 2016-08-30
HI

I would like to create a drop down list (which I have) and depending on the selection I would like certain items to appear in a second dropdown list. Finally, when the user picks the item from the second list I would like it to display a link to the file.

The list is not large, so no need for a database. I am thinking this should be done by Java script or maybe PHP since it is Joomla based website. Any ideas would be appreciated.

Regards
0
Comment
Question by:yaminz66
  • 2
4 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 41739902
What you're looking for is called a "dependent drop-down" or a "conditional fields display" and it's a common design pattern.  I looked for examples, but most of them are very old (it was a popular topic in 2010) and the Joomla examples may be out of date.  Some of the examples use MySQL which has been gone from PHP for quite a while.  TL;DR: This looked like a good place to start.
http://forum.joomla.org/viewtopic.php?t=516398
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 41776094
The author is looking for a dependent drop-down.  The author is using Joomla.  The link here is to the Joomla forums, where it teaches how to create a dependent drop-down.
https://www.experts-exchange.com/questions/28961111/Dropdown-List-for-Webpage-on-my-Joomla-Website.html#a41739902

I don't know what the process is to find enough information to confirm an answer but the answer is right there in the forum, with links to other explanations and code samples that build the design pattern, so I think the question is pretty well answered.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question