Hi everyone
I have the forms working, with the dropdown selections, I want the user to be forced to type something if they click on "Other", how can I do this? You will see by the page on the site, that it is obvious the problem would crop up.
http://www.tech4law.co.za/component/option,com_chronocontact/Itemid,40/
Thanks
Malcolm
I have the forms working, with the dropdown selections, I want the user to be forced to type something if they click on "Other", how can I do this? You will see by the page on the site, that it is obvious the problem would crop up.
http://www.tech4law.co.za/component/option,com_chronocontact/Itemid,40/
Thanks
Malcolm
Hi Malcolm
here comes the use of custom JS validation code, you need to add it to the JS code box, tie it to the submit even of the form, example :
in your form tag attachment field add:
at the JS box:
let me know if you can't complete the code yourself, very tired now!
Regards
Max
here comes the use of custom JS validation code, you need to add it to the JS code box, tie it to the submit even of the form, example :
in your form tag attachment field add:
onsubmit="return validate()"
at the JS box:
function validate(){
if(other is checked and other text is empty)alert();
}
let me know if you can't complete the code yourself, very tired now!
Regards
Max
This topic is locked and no more replies can be posted.