Frontpage IF Statements in default value

  • Thread starter Thread starter Junior
  • Start date Start date
J

Junior

Hello All,

I would like to place a default value in a text field that is
conditional on the value defaulted from another field on my ASP form.

I have two text field boxes.
I would like the second to default to a certain string in the instance
that the first equals a certain value.
How can I place IF statements in the default value field in frontpage
without them returning errors ?

Any help appreciated.
 
You can't. You need to put the script in a function and call this
script. Since you are looking for a particular value, I assume the first
is a dropdown rather than an ordinary textbox. if so, you can use the
onchange event to call your script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 

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