Creating Condition If Then Statements on a Mail Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Basically I would like to create a if then statement on a form, not quite sure how it works tho..

I have two option buttons, Yes and No.

I would like to make my fields grey'ed out if possibly and when the user clicks Yes, the text fields and drop down selection boxes become available to use.

Thanks for the hlep.
 
You would have to do this with JavaScript. There should be some script
examples at: javascript.internet.com. What you can do is set an onclick
event for the yes button that calls one function and sets whether or not
certain form fields are enabled by passing a boolean value to the function
and just setting the enabled property for the form fields to that boolean
value. You can call the same function from the onclick of the no option just
passing the opposite boolean value.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

Foolio said:
Basically I would like to create a if then statement on a form, not quite sure how it works tho...

I have two option buttons, Yes and No.

I would like to make my fields grey'ed out if possibly and when the user
clicks Yes, the text fields and drop down selection boxes become available
to use.
 

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

Back
Top