September 22, 200520 yr Hello I'am having troubles with a field that need a required value. I use a radio button so the customers need to accept our terms of delivery. The button only has a value "Yes" and is standaard unchecked. When I send my form with the button NOT selected so there is no input, the databases accepts it. How come? My Text fields wich also need required input does work the right way. When you do not enter any data in this kind of fields a pop-up box shows and tell you that field xxx needs input. So does anybody know why it doensn't work with radio buttons! Greetings Jukkie
September 22, 200520 yr I'm supposing that after filling out the form, the user has to click on some kind of "Send" button? If so, create a script that is assigned to that send button, and have an IF statement with something like - IF CBfield <> "Yes" Show message "Uh, you've got to check yes before proceeding, dude!" Exit Script END IF If the button is already assigned to a script, then add the above code (or something like it) to the beginning of the existing script.
Create an account or sign in to comment