Forums

Double Dynamic Dropdown with multi select requires shift key

wallyhowe 07 Jul, 2017
Hi there

The scenario:

I am creating an application form for a sports club with 2 sports (tennis and squash), each with their own age groupings (e.g. age 7 and under, youth, student, young adult, senior).
Subscription fees are based on year of birth.
In the senior category (28 and over) there is a further option of peak or off peak playing restrictions.
Prospective members can choose 1 sport or 2 sports and in the senior category if 2 sports are chosen this gives 4 options for the combinations of peak and off peak. (Full tennis, full squash: Off peak tennis, full squash: etc).
To complete the scenario the form must cater for a family where multiple people at the same address can be subscribed.

I have other forms in use covering multi page and repeaters so am reasonably comfortable with the task (probably a fatal statement!!).

However, I am stumbling at the first hurdle. I have a double dynamic dropdown, the first based on year of birth that populates via a database read a second dropdown (with multiple select) with the options for that age. For example if it is year 2011 (age 6) the options displayed are Tennis age 7 and under, Youth squash. If the year is 1980 ( age 37) the options are Full tennis, Full squash, Off peak tennis, Off peak squash.

This works.

The problem is that more than one selection only works by holding down the shift key as the second selection is made. This is not something that would be acceptable as a user experience.
What do I need to do to enable multiple select without the shift key?

Thank you

Wallyhowe
GreyHead 14 Jul, 2017
Hi Wallyhowe,

It's standard HTML behaviour that you need to hold shift (to select a contiguous block) or control to select multiple separate entries. If you don't want this, then you can use a CheckBox group instead.

Bob
wallyhowe 14 Jul, 2017
Hi Bob

OK, silly me.
I cannot get Checkbox groups to work for this. I swapped the dropdown for a checkbox group but I cannot get the dynamic descriptions to populate. I had assumed that everything should be the same in the action code and that all that needed doing was to swap out the dropdown and replace with a checkbox group with the same name, double brackets and all.
Wallyhowe
wallyhowe 20 Jul, 2017
Hi Bob
What do I need to do differently between dynamic dropdown and dynamic checkbox group ?
Wallyhowe
GreyHead 21 Jul, 2017
HI wallyhowe,

How does this form look? Is that doing more or less what you need?

Bob
wallyhowe 22 Jul, 2017
I was trying to base the whoe form on year of birth and only display the relevant options once that was selected. In other words for the middle and bottom sections of your form to be hidden or greyed out to start with.

However, I think I am probably being over complicated so I think Icould work very nicely with your form as the basis.

How can i get the original?

Many thanks Bob

Wally
GreyHead 22 Jul, 2017
Hi Wally,

Here you are, this is a basic version - you can edit the script to hide elements until they are needed if you prefer.

Bob
wallyhowe 22 Jul, 2017
Many thanks Bob

Coffee sent.

Wally
GreyHead 24 Jul, 2017
Hi Wally,

Thank you, much appreciated.

Bob
This topic is locked and no more replies can be posted.