See datetime in backend

Questions and bug reports for current release of CKForms

See datetime in backend

Postby Leon » Tue Jan 05, 2010 12:20 am

Hello!

Is there any way to see the datetime of an registration on the backend?

I can see all the fields of the form, the IP Address and the ID, but I can't see the time of the insert (which is important if it is a timeline). I can see on the email, but I would like to see in the backend too...

Thanks in advance!!
Leon
 
Posts: 2
Joined: Tue Jan 05, 2010 12:14 am
Top

Re: See datetime in backend

Postby nfr » Tue Jan 05, 2010 10:17 pm

Make a hidden field in your form and call it e.g. time, in this hidden field you mark add unique id to value, leave value blank.
After a submission you click in your backend in line with this form "display data" there will be listed your hidden field time. Click on this unique id and you will see the time the submission was made.
nfr
 
Posts: 45
Joined: Thu Sep 03, 2009 8:37 am
Top

Re: See datetime in backend

Postby Leon » Wed Jan 06, 2010 10:35 am

Thanks for the answer!!

I did what you said and as I expected a new "random" column was created. The hidden field value wasn't the datetime, it was "4b445582a27712.41467598" instead.

Anyway I saw that clicking on any field it goes to the detail of the registration and there is the datetime. It would be better to see it on the list without enter on the detail of each row, but it is enough.

Thanks again!

Edit: I finally solved it editing the file administrator/components/com_ckforms/views/ckdata/tmpl/default.php and adding the column there.

Code for the header:
<th width="7%">
<?php echo JText::_( 'Date' ); ?>
</th>

Code for the value:
<td>
<?php echo $row->created; ?>
</td>
Leon
 
Posts: 2
Joined: Tue Jan 05, 2010 12:14 am
Top


Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 1 guest