close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

3 level dependent dropdown - change 1st master reset all?

Thread began 4/03/2013 3:20 pm by Andrew Read | Last modified 4/12/2013 4:16 pm by Jason Byrnes | 1574 views | 32 replies |

Andrew Read

3 level dependent dropdown - change 1st master reset all?

OK here is one that I haven't figured out yet.

I have setup a 3 level dependent dropdown, which is working for the most part, however when I change the first dropdown, it does not reset the third level dropdown.

Explanation:

I have three dropdown menus (all database driven) that are connected to each other.

  1. Programs (program a, program b, program c, etc.)
  2. Types (type a, type b, type c, etc.)
  3. Weeks (week a, week b, week c, etc.)


Not all programs have all types and not program & types are available all weeks.


If I select a program, then a type, then a week it works properly. However If I change my Program selection after I set all three it only resets "Types". It also needs to reset weeks to be re-chosen as the previously chosen week may not exist under the new type.


How do I make that happen? ;)


Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

add a second populate list from array behavior, to the program list on change event to change the weeks list.

Sign in to reply to this post

Andrew Read

OK, I'll give that a shot.

And to make things more complicated, the third dropdown's contents need to be filtered based on both the selection in the first and second dropdown.

How do I achieve that? ;)

Sign in to reply to this post

Jason ByrnesWebAssist

you have to be crafty with the recordsets that are being used and concatinate the key columns

Sign in to reply to this post

Andrew Read

Hehe.. and while I am at it, I want to populate a read only text area with a value based on selection 3. :D

Sign in to reply to this post

Jason ByrnesWebAssist

javascript is your friend ... ;)

Sign in to reply to this post

Andrew Read

If I was a JS programmer I wouldn't be such a pain in your butts while using these extensions! :D

I guess that means that WADB won't provide that functionality for me on its own. ;)

Sign in to reply to this post

Jason ByrnesWebAssist

No, Data Bridge does not this functionality.

Sign in to reply to this post

Andrew Read

Still stuck on concatation

The concatation is an interesting way to go about things, the issue is that the concatated values will be stored in the database and not the raw IDs for each dropdown that I want. Unless I am really missing something obvious. ;)

Sign in to reply to this post

Jason ByrnesWebAssist

concatenating the IDS is the only way to be able to limit the choices in the 3rd list by both parent selections.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...