View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
1. You can pre-populate an HTML form field by populating the value clause:
<input type="text" name="date" value="<%=DATE()%>">

2. HTML form fields do not support input masks.  I recommend that you implement validation on both the client side (JavaScript), as well as the server side after the form is submitted.

Sent by mike hood on 10/19/2001 10:42:10 AM:
i have a html textbox that holds collects a date().  i have put some validation code to make sure the date is in a certain format and works great.

2 questions.

1st: can you set the value of the textbox with the current date at run time and let the user edit that value if needed then save the value on submit?

2nd: can you implement a format or inputmask on an html textbox?