How to make a radio button a required field

P

pete0085

I have a simple form with two radio buttons as options, is there a way I can
make this a required field, meaning the user must select one or the other?

Sick:</b> <input type="radio" name="OBKey__148_1" value="Sick
<b>Absence:</b> <input type="radio" name="OBKey__148_1" value="Absence">
 
A

Andrew Murray

Assuming you're using Frontpage (and haven't miss-posted an Expression Web
question):

I no longer use FP but I think if you right click the radio button, and go
to the field properties, the feature to make it "required" is in the field
properties dialogue.


Note that Expression web doesn't have the field validation that Frontpage
has.
 
P

pete0085

I am using front page 2003 and did notice that option but it didn't seem to
do anything unless it was not configured correctly.
 
A

Andrew Murray

The FP validation uses Javascript; so make sure you have javascript enabled
in your browser, and test the page with the form on your web server, it
won't work off line, because it sounds like you're using the form web-bot,
and it needs to be on the server with FP extensions to process the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top