Simple double drop down list - no ajax

dz0tfs 21 Oct, 2012
I am trying to get a simple double drop down list in my form. I assume I am missing something, as I cannot get this function to work.

I have followed this instructions in this FAQ for the 'Simple double drop-down', but I suspect that I have not configured the second drop down list Dynamic Data tab correctly.

Here is the First drop down configuration (Dynamic Data is Off)
Label Text = Type *
Field Name = type
Field title = Type
Options
Balustrade=Balustrade
Pool Fence=Pool Fence
Handrail=Handrail
Privacy Screen=Privacy Screen
Other=Other


I have added a Dynamic Dropdown Power Field to the On Load with the following settings:
Action Label = infill filter
Source Dropdown ID = type
Target Dropdown ID = infill
Use AJAX ? = No
Extra options extension
Balustrade:vertical wire=Vertical Wire,horizontal wire=Horizontal Wire,glass=Glass
Pool Fence:vertical wire=Vertical Wire,glass=Glass
Handrail:not applicable=Not Applicable
Privacy Screen:opaque glass=Opaque Glass,aluminium slat=Aluminium Slat
Other:not applicable=Not Applicable


Here is the Second drop down configuration (Dynamic Data is On)
General Tab
Label Text = Infill *
Field Name = infill
Field title = Infill
Options = Blank
Dynamic Data tab
Enable = Yes
Data Path = infill filter
Value Key = type
Text Key = infill


In my form the first dropdown (Type) has the selection list, but the second dropdown (Infill) does not have any selections, regardless of the Type selected in the first dropdown.

Here is link to my page.

Regards,

Andrew
GreyHead 22 Oct, 2012
Hi dz0tfs,

I rebuilt this and I think you need these changes:

a) copy the Field Name entries into the Field ID boxes in the two elements (this is the important change, I've updated the FAQ to say that it's needed).

b) remove the entry from the Data Path box on the Dynamic Data tab of the second element (it's not needed).

c) add something like ? or Please choose in the Show Empty box of the first element. This prevents the start up situation when Balustrade shows but the second drop-down is empty.

Bob
dz0tfs 22 Oct, 2012
Hi Bob,

Thanks for you prompt response. Your solution works perfectly. I assume your are in Britany, France, so it may take me a while to raise the funds to travel that far and buy you a beer, as I'm in oz (Australia).

Regards,

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