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
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
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
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
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
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
Hi,
Maybe you can add a "Load JavaScript" action after the "event loop" and use this code:
Regards,
Max
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
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
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
Could you post a link to the form so we can check it ?
Hi Simelas,
Please remove that code and send me a message using the "Contact us" page to get an update for this!
Regards,
Max
Please remove that code and send me a message using the "Contact us" page to get an update for this!
Regards,
Max
Hi,
I have the same problem, can you post the solution here please.
Thanks,
Tico
I have the same problem, can you post the solution here please.
Thanks,
Tico
Hi Tico,
It will be included in the new update, which is supposed to be published in the next couple of days!
Regards,
Max
It will be included in the new update, which is supposed to be published in the next couple of days!
Regards,
Max
This topic is locked and no more replies can be posted.