Jukkie Posted September 22, 2005 Posted September 22, 2005 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
BrentHedden Posted September 22, 2005 Posted September 22, 2005 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.
Recommended Posts
This topic is 7059 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now