Easy way to display Submitted Date in view

  • deanpacc
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0

deanpacc created the topic: Easy way to display Submitted Date in view

In ContentBuilder, creating a View which includes the "Submitted Date" to display in the frontend table (or backend or both).

I've tried other quick things that don't work, like adding echo php date in a hidden field, but this would only replicate a field that's already given.

I can see the data easily in Manage Records from the Submitter Information table saved with every submission, but it doesn't show as an field option in CB when creating views.
#201095
  • Posts: 2667
  • Karma: 76
  • Thank you received: 329

lovre replied the topic: Easy way to display Submitted Date in view

Hi,

Please see this topic:
crosstec.org/en/forums/1-forums/116610-a...ist-view.html#200829

If you have any questions let us know.

Regards,

Lovre

Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
#201104
  • deanpacc
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0

deanpacc replied the topic: Easy way to display Submitted Date in view

I checked that out, but I seem to be missing one last step that was unclear from that post.

- create the NEWFIELDNAME field
But what is the "value" of that new field?

I get the column NEWFIELDNAME to display in CB table, but it has not data or entries.
#201118
  • Posts: 2667
  • Karma: 76
  • Thank you received: 329

lovre replied the topic: Easy way to display Submitted Date in view

Hi,

this code is populating the field on submit, as i understand you already have all the records, so the old ones will not get the value like this, only new records will have the value.

Maybe you could run an SQL command on your db and add rows to the facileforms_subrecords table. You need to add a row for each record you have for that form, and you can get the submitted time from the facileforms_records table.

If you need any help with the query let us know.

Regards,

Lovre

Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
#201277
  • deanpacc
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0

deanpacc replied the topic: Easy way to display Submitted Date in view

Yeah, I tried that first when I noticed prior records empty in that new field. But it's not that, as I submit new form data on the frontend every time I make a change to the form in BF.

So, leave the "value" for this new field blank and it will pickup the date submitted? I have tried several things as the "value" as well as blank.

I am using that piece of code from the other thread almost verbatim, and placed in Options > Submit Pieces > Begin Submit, custom...
$submitted = date("Y-m-d H:i:s");

$i = 0;
foreach($this->xmldata As $data){
if( $data[_FF_DATA_NAME] == 'datastuff' ){
$this->submitdata[$i][_FF_DATA_VALUE] = $submitted;
$this->maildata[$i][_FF_DATA_VALUE] = $submitted;
$this->savedata[$i][_FF_DATA_VALUE] = $submitted;
$this->xmldata[$i][_FF_DATA_VALUE] = $submitted;
}
$i++;

}
#201411
  • Posts: 2667
  • Karma: 76
  • Thank you received: 329

lovre replied the topic: Easy way to display Submitted Date in view

Hi,

could you please send over your SuperUser credentials to support@crosstec.org and reference this topic in the email subject. Please let us know when you do. We'll be on it asap.

Regards,

Lovre

Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
#201763
Moderators: tomeperica
Time to create page: 0.081 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here