Select events not working properly on some OS-browser

dieda12 31 Mar, 2017
HI,

I am using Chronoforms since few years and am very happy with this extension :-) I have built a form with many entries at this address

http://www.arca-bologna.com/how-to-enrol

and would like to focus on three "depending" selects:

Course
Course duration
Course frequency

In particular, when selecting values inside "Course" the other two selects are populated with values, or are disabled (see attached examples), accordingly. To achieve this result I have set the events tab values inside the select edit area (form designer), see attached examples. Everything work fine most of the times (see first attached emailed form), but every now and then we receive forms by mail with "Course" select and both connected selects empty (see second attached form).

In order to better understand when the selects stay empty I have set two hidden fields that capture the user's OS and browser name (although the result is not accurate) and so far I have a Windows 7 - Unknown browser user and a Safari - Mac OS X user.

Can you give me hints about how I can have the selects dependancy ALWAYS working ?

Thanks in advance

Elena
Max_admin 31 Mar, 2017
Answer
Hi Elena,

This feature uses JavaScript, so if for some reason the JavaScript did not work as expected on the user's browser or there was some error then this may happen, if you want to make sure that a value is provided then you should use the "Server validation" and set the 2 dropdowns as required, this will reload the form if the fields are empty.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dieda12 31 Mar, 2017
Hi, thanks for the hint. Since I also have captcha validation, can you tell me if the attached settings are ok? Or should I nest the server validation inside the captcha one ?
Max_admin 31 Mar, 2017
Hi Elena,

The settings are correct, but the "Server validation" should be dragged ABOVE the "Check reCaptcha" and you should also add an "Event loop" action inside the "fail" event of the "Sever validation".

You also use "Duration" and "Frequency" in capital letters, this should match the fields names.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dieda12 31 Mar, 2017
Thanks a lot Max, I changed the settings as you suggested.
In my form field names have first capital letter whereas ids are all small caps.
Max_admin 31 Mar, 2017
Good, now you can test the form with empty field to make sure it works as expected.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger