Form Question

  • Thread starter Thread starter Tom H.
  • Start date Start date
T

Tom H.

I created a form in FrontPage 2002. The form has a group
of 4 radio buttons. For each radio button, a
corresponding drop-down box allows the user to choose from
a group of options. I would like to add functionality to
the form which would require the user to make a selection
from the corresponding drop-down box depending upon which
radio button is chosen. Help!

Thanks in advance.

Tom H.
 
You need to write some JavaScript that handles that for you.


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<[email protected]>

I created a form in FrontPage 2002. The form has a group
of 4 radio buttons. For each radio button, a
corresponding drop-down box allows the user to choose from
a group of options. I would like to add functionality to
the form which would require the user to make a selection
from the corresponding drop-down box depending upon which
radio button is chosen. Help!

Thanks in advance.

Tom H.

[microsoft.public.frontpage.client]
 
You could do this by selecting one of the 4 radio buttons then the relevant
dropdown list would appear (this would be done by changing the 'visible'
attribute) depending on the 'checked' atrribute of the radio button.

function checkradio();
{
if form1.radio1.checked = true {
form1.droplist1.visible = true
else form1.droplist1.visible = false
{

{

and so on, I think....other members please verify this is the correct syntax or
that I'm on the right track.

You could do it with 'visible' or 'invisible' attributes, or if you want to leave
all form elements on the screen the 'enabled/disabled' status might be the way to
go.

If you set a form field to 'disabled' it is 'greyed-out' like you see in windows
dialogue boxes - so depending on which radio button you choose, the others will
go greyed out (or at least the drop-down boxes will, so you don't choose from the
wrong list i.e. if you choose radio button 1 you want to choose from droplist 1.
 
Back
Top