How do I add a date\time field to form
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 3
- Joined: Fri Aug 09, 2013 1:15 pm
How do I add a date\time field to form
I have created a form which allows users to enter faults to a database, what I would like to have is a filed in the fault log which records the date and time of the record.
0 x
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Create a field then set the field type to DateTime. Create a script to run at the appropriate time - when the user clicks submit button? - then set the current date and time like this:
You can map this field to database timestamp or date columns when inserting to the database.
This post should be in the Ebase Application Development Category - this category is for product enhancement suggestions.
Regards
Jon
Code: Select all
fields.DATE_TIME_FIELD.value = new Date();
This post should be in the Ebase Application Development Category - this category is for product enhancement suggestions.
Regards
Jon
0 x
-
- Ebase User
- Posts: 3
- Joined: Fri Aug 09, 2013 1:15 pm
Who is online
Users browsing this forum: No registered users and 21 guests