Hi all, hope you might be able to help. I have just used phpFormGen v3.0 to create a multipage form. The problem is I am not very good with Javascript. I want to add a Javascript function that does not allow the form to proceed if "No" is selected in a dropdown menu. The code is as follows.
I can't read your post. In any case the form has a submit function that checks the form input fields before it is processed. You just need to add the test condition for the specific field and value to do what you want. Can you send a pointer to your form?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all, hope you might be able to help. I have just used phpFormGen v3.0 to create a multipage form. The problem is I am not very good with Javascript. I want to add a Javascript function that does not allow the form to proceed if "No" is selected in a dropdown menu. The code is as follows.
References
I can't read your post. In any case the form has a submit function that checks the form input fields before it is processed. You just need to add the test condition for the specific field and value to do what you want. Can you send a pointer to your form?