Hi,
I have created a Dynamic Double dropdown from 2 tables,
Dropdown 1 is Organization
Dropdown 2 is Schools from that organization.
I can see the schools list growing quite big, maybe a few hundred and am trying to get the second dropdown as an Autocompleter.
How can I call the Autocompleter after Dropdown one is selected to populate dropdown 2(Which I would have to change to a text box)? I can get autocompleter working from on load but cant work out how to call it from a dropdown 1 event? Thanks
Example here: http://www.feisonline.com/login-register/register
I have created a Dynamic Double dropdown from 2 tables,
Dropdown 1 is Organization
Dropdown 2 is Schools from that organization.
I can see the schools list growing quite big, maybe a few hundred and am trying to get the second dropdown as an Autocompleter.
How can I call the Autocompleter after Dropdown one is selected to populate dropdown 2(Which I would have to change to a text box)? I can get autocompleter working from on load but cant work out how to call it from a dropdown 1 event? Thanks
Example here: http://www.feisonline.com/login-register/register
Hi cymak,
We may have a confusion in terms here. In CF-speak and AutoCompleter is a text input where the user types in a few characters and is shown a list of possible results. A Double drop-down is where the options in a second select drop-down change when the first drop-down selection changes.
I think that you are describing a Double-drop-down here. If so, please see this FAQ.
Bob
We may have a confusion in terms here. In CF-speak and AutoCompleter is a text input where the user types in a few characters and is shown a list of possible results. A Double drop-down is where the options in a second select drop-down change when the first drop-down selection changes.
I think that you are describing a Double-drop-down here. If so, please see this FAQ.
Bob
Ok maybe I'm not explaining properly🙂 I am basically looking for a double drop down functionality except that the second drop down should really be an auto completer, does that make sense? Thanks for your help!
Hi cymak,
I guess that could be done but it would need to be custom coded. I think you'd need to send the drop-down value back to the server along with the Auto-completer value to filter the results returned. It shouldn't be too hard to do.
Bob
I guess that could be done but it would need to be custom coded. I think you'd need to send the drop-down value back to the server along with the Auto-completer value to filter the results returned. It shouldn't be too hard to do.
Bob
I have the the first dropdown field and I have the autocompleter ajax working I just need to be able to call the autocompleter after the first dropdown updates can this be done or can the autocompleter only be used during Load? Thanks
Hi cymak,
The Autocompleter code runs when he user types in the box. But I don't think that the standard Autocompleter will help you here, the code has to take account of the drop-down selection.
Bob
The Autocompleter code runs when he user types in the box. But I don't think that the standard Autocompleter will help you here, the code has to take account of the drop-down selection.
Bob
Yes it has to take account of the dropdown selection which was why I was hoping to run the autocompleter action in a new event and trigger that ajax event after dropdown 1 has been selected, then the autocompleter will have the correct data, is that possible?
Hi cymak,
As far as I know that's only possible with Custom JavaScript - there is nothing in the built-in autocompleter that will let you send a second parameter to the server for the lookup.
Bob
As far as I know that's only possible with Custom JavaScript - there is nothing in the built-in autocompleter that will let you send a second parameter to the server for the lookup.
Bob
This topic is locked and no more replies can be posted.