Forums

Dropdown allow addition

rafaelscouto 12 Mar, 2019
Good Morning

I really liked this new feature of the "allow addition" dropdown.

I have two dropdowns, the second one reload according to the choice of options of the first, except that with this new addition feature, the second dropdown does the reload and returns no value.

I'd like to sort this out. When using this addition feature, generate a fixed option in the second dropdown.

I hope you have understood haha
Max_admin 14 Mar, 2019
Hi Rafael,

The added text will be passed as the dropdown value in the data array (as if it was an option), you can use that value to build the desired options for the 2nd dropdown!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rafaelscouto 15 Mar, 2019
I understand.

But when a new addition occurs, the 2nd dropdown is reloaded and returns no value, is left blank.

I wanted to reload show a value determined by me
healyhatman 15 Mar, 2019
How do you determine what gets shown in that second dropdown? Because I'm betting you haven't accounted for the added value not existing. Like you've only checked for dropdown1 being A or B, and haven't set it up to properly handle the user typing in C
This topic is locked and no more replies can be posted.