Frontpage IF Statements in default value

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.
 
J

Jens Peter Karlsen [FP MVP]

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.
 
Top