Forums

double dropdown

peppelaria 07 Nov, 2015
Hi Bob.
I'm trying to build an edit profile form with double dropdown in Chronoforms v5 for country and city.
In the curtom registration form all works fine by using ajax to populate the second dropdown as shown in related topics.
In the edit form the event condition to ajax in order to populate the second form is always true, than the second dropdown loads the right options from ajax event, but doesn't selects the already saved value loaded in the onload event by the db read.
This doesn't appens with CFV4.

I will appreciate any suggestion.

Thanks in advance
Max_admin 30 Nov, 2015
Hi peppelaria,

Unfortunately this is an expected issue, your 2nd dropdown will have to load the options using the "Dynamic data" settings from the database directly when you are "editing", I think that you can use the same form for creating/editing, but you will need to test that it will work as expected.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
peppelaria 15 Aug, 2017
Hi Max, still no luck with double dropdown in edit mode with chronoform 5. When i load the data with the db loader the second dropdown loads the first result from ajax. How can i get selected the option set in the $form->data array?

In chronoforms 4 ti worked perfectly.

Thanks a lot
Max_admin 19 Aug, 2017
Hi peppelaria,

Please check the v6 manual and try to build this form using v6 instead ? you can install v6 on the same website with v5

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.