FrontPage 2003 Textbox

B

Ben

Hi there,


Anyone knows how I can enforce user to input numerical
value only but not letters in the text box. It seems that
the feature in text box doesn't work.

Thanks,
Ben
 
R

Ronx

Right click the text box and choose Form Field Properties.
Click the Validate... button, on the Data Type
dropdown choose Integer or Number, and complete the other details as
required.

The validation may fail in Preview, but works in Preview in Browser.

If you have your validation scripts they may cease to function, since FP
re-writes the <form> tag.
 
B

Ben

Why I can still enter letters instead of numbers in the form although I had
validated the text box to be number or integer. Does the form validation
still work even I have not published my web page to the web server coz I
thought the validation has to be processed in the server side? Any
difference if I made the file extension to be .asp or .htm in order to make
it work?
 
R

Ronx

The FrontPage validation won't do anything until the user submits the form.
Then they will see a message saying field ??? is incorrect.
The validation is done locally, and relies on JavaScript being turned on.
It may not work at all in Preview, but the validation will work in preview
in Browser when the submit button is clicked, although the form will not
actually submit until it is published to a server. Changing the form to
..asp will probably stop the form working if it uses the FP extensions for
processing.
 
Top