Hi Marc,
I think that the problem here is that the script snippets are running in the 'wrong' order so that the validation class is being added *after* the FormCheck validation has been set up and so it is not seen and has no effect. I think that I have found a better way of doing this since I wrote that script; I'll see if I can find it and post it here.
Bob
Hi Bob,
thank you for the qiuck response! 😀
I´ve already arranged the 'Load JS' Box to the top of the event - before 'Show html', but in this case I only get a blank page after submittung the form.
So, if you have an alternative for that, I'll be very happy.
regards,
Marc
Hi Bob,
again thank you for sending me this code. But I´m sorry to say, that nothing changed.
I've put the code into the load js box under the show html event, but the first validation that work is the salutation?!
Do you have any other ideas?
regards,
Marc
Hi Marc,
The Load JS action should probably before the Show HTML action, please switch that over and see if it then works.
Bob
Hi Bob,
when I put the load js box before the show html box, non of the validations (custom or built-in) work. After submitting a empty form a blank page is shown?!
regards,
Marc
Dear Bob,
sorry for the late answer and thank you for the info. I eliminate the divs around the input field, but it is the same as before. 😢
To ensure that this had nothing to do with the older Joomla System I tried this also on a J2.5 with Chronoforms 4.0 (Stable).
Regards,
Marc
Hi Bob,
yes, your're right. They appeared after I used the wizard to edit the form. But I already tried the script without the surrounded divs (as you can see now on the demo).
regards,
Marc
Hi Bob,
again many thank for that advice. As you can imagine I`m not used to work in Javascript or other programming tasks. 😟
But I`m sorry to say, that the problem still exists. I have updated these lines but the result is still the same ... 🤨 🤔
regards,
Marc
Hi Bob,
I followed your advice and replace the line. But the validation won't work ... 😫
Thanks again!
Regards,
Marc
Hi Marc,
I just checked the form and the validation is working. The error message is Bitte Wählen!; the error show up as the last validation because it was added last and I'm not sure that the count is quite correct but it does work.
Bob
Hi Bob,
yes you are right! 😀
I'm sorry, but I expected that the validation at the top of the page, because the corresponding fields are at top.
Is it possible to change the order of the validation to the top?
Again a big thank to you...
Regards,
Marc
PS. I think it is time to get something to drink for you! :wink:
Hi Bob,
I've used formCheck_form_name.register(checkbox, 1); and it works! 😀
Regards,
Marc