Double drop down - dynamic - second dropdown not reloaded

simelas 02 Oct, 2014
Bonjour Bob,

short question:

Chronoforms V5 - Double Dynamic drop down . Second Drop down (drop down 2) ajax activated correctly shows option list after dropdown 1 selection. Dynamic data (coming from database).

On submit event is ending with an event loop >> load.
First drop down keep its initially selected value ( as expected) but second drop down get disabled and emptied ( not expected).
Events for 1st drop down towards 2nd dropdown: on = '' disable, on !='' enable, on !='' Set dynamic options .... Thus in theory 2nd drop down should be able and reload with option list as selected from 1st drop down.

What's wrong in my resonning or maybe settings ?

(In Chronoforms V4 the expected behaviour is obtained with ajax and aditonnal JS that you had posted in the forums - how to some time ago).

Thank you in advance

Simelas
GreyHead 03 Oct, 2014
1 Likes
Hi Simelas,

I don't think that there is anything wrong with your reasoning or settings - just that ChronoForms does't know how to handle this situation :-(

The solution is to add some JavaScript that will get and set the second dropdown when the page loads 'If' there is a selection already made on the first drop-down.

I think we've answered this before but I can't find it right now - I'll search again later.

Bob
simelas 03 Oct, 2014
Hi Bob,

Thanks for the answer. ( One parameter less for scratching head !)

For the Javascript solution i guess you were referring to CFV4 double drop down : http://www.chronoengine.com/forums/posts/t89424/p314862.html#p314862

Best,
Phil
Max_admin 05 Oct, 2014
Hi,

Maybe you can add a "Load JavaScript" action after the "event loop" and use this code:

jQuery( document ).ready(function() {
jQuery("#first_dropdown_id").trigger("change");
});


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 05 Oct, 2014
Hi Max,

I tried your suggestion, putting the load JS action in different positions.

No effect i am afraid. But maybe i missed something.

(The loop event goes back to the initial on load event)

Any point i should check ?

Best ,

Simelas
Max_admin 05 Oct, 2014
Could you post a link to the form so we can check it ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 05 Oct, 2014
Will do via PM

Thanks for looking at
Max_admin 15 Oct, 2014
Hi Simelas,

Please remove that code and send me a message using the "Contact us" page to get an update for this!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
tico92 26 Oct, 2014
Hi,

I have the same problem, can you post the solution here please.

Thanks,
Tico
Max_admin 28 Oct, 2014
Hi Tico,

It will be included in the new update, which is supposed to be published in the next couple of days!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
tico92 28 Oct, 2014
Hi Max,

great, looking forward to it.

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