TOPIC:

Display creation date 2 months 3 weeks ago #245468

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Hello,
I would like to be able to display in the Contentbuilder view, the registration dates of the Breezing forms with the list of collected information. I searched on the forum and can't find a solution.
For information, the date is well recorded during the validation of BF, but I can't display it on the CB view list. Thank you in advance for your help.
Marc

Please Log in or Create an account to join the conversation.

Display creation date 2 months 3 weeks ago #245478

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1635
  • Karma: 3
  • Thanks: 149
Hi,

1) in your BF form add hidden input, and set name for this hidden input "date".
2) go to your form->Advanced->more options->Settings->Log To Database->select "All values".
3) go to your form->Advanced->more options->Submit pieces->Begin submit->check custom and put this:
$length = count( $this->savedata);
for($i = 0; $i < $length; $i++){
    
    if( $this->savedata[$i][_FF_DATA_NAME] == 'date' ){

        $date = date('Y-m-d H:i:s');

        $this->savedata[$i][_FF_DATA_VALUE] = $date;
    }
}
4) Go to your CB view->public date filed, check include in list date field, and check Editable.
Set its -Order Types- "Date & Time".

Then for every new record you should have date from the form.

Let me know if it works for you.

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Display creation date 2 months 3 weeks ago #245480

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Thank you Tihana,
I've done the integration but I get this message when I test:

syntax error, unexpected 'leng' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$'

I lack the experience to find out what's wrong with the procedure.

Thanks again for your help.
Marc

Please Log in or Create an account to join the conversation.

Display creation date 2 months 3 weeks ago #245481

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1635
  • Karma: 3
  • Thanks: 149
hi,

instead $leng add $length.
My mistake, sorry.
Like this:
$length = count( $this->savedata);
for($i = 0; $i < $length; $i++){
    
    if( $this->savedata[$i][_FF_DATA_NAME] == 'date' ){

        $date = date('Y-m-d H:i:s');

        $this->savedata[$i][_FF_DATA_VALUE] = $date;
    }
}

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Display creation date 2 months 3 weeks ago #245484

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Thank you Tihana,
I modified the script as sent. I don't have any anomaly anymore, but the dates are not displayed, for the new records.
Thanks again for your help.
Marc

Please Log in or Create an account to join the conversation.

Display creation date 2 months 3 weeks ago #245485

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1635
  • Karma: 3
  • Thanks: 149
Hi,

this works for me.
If you want you can send me your backend link and login information so I can take a look. (send it to tk@evolutio-it.com).

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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!