Sarah
|
| Posted: 03/01/2002, 2:17 PM |
|
I have a feild on a record page called date_added. In the before show event I put flddate_added=date("Y-m-d") So the date is filled in automatically as a label, but when it's time to insert the record the date added on the next page (the grid page) shows 00-00-0000. Why isn't the date being inserted with the record?
|
|
|
 |
Alex Alexapolsky
|
| Posted: 03/02/2002, 3:03 AM |
|
Labels are never inserted. Labels are pure html makrup that has nothing
to do with form elements such as listbox or text area.
Change field type to textbox and if you want , make it read-only.
|
|
|
 |
Sarah
|
| Posted: 03/04/2002, 9:26 AM |
|
Thanks for the help! How do I make it read only?
|
|
|
 |
Tom
|
| Posted: 03/04/2002, 10:43 AM |
|
Another idea is to leave that date as a label and add a hidden field of the same type with the same default value for the date. The hidden field should be tied to your date field in your database.
|
|
|
 |
oishyasan
|
| Posted: 03/05/2002, 6:05 AM |
|
I had this same problem, if you want to show it as a label, you must later insert it into the table - after insert or after update.
|
|
|
 |