TOPIC:

Sum attached files sent 2 weeks 6 days ago #263160

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6926
  • Karma: 3
  • Thanks: 493
Hi again,

please in End Submi pieces add this:
$this->execPieceByName('ff_InitLib');
$session = JFactory::getSession();
$files = glob('media/breezingforms/uploads/yourfolder/*''); // get all file names who should be saved in that path, * represent all in that folder
$filecount = 0;
if ($files){
 $filecount = count($files);
}
$session->set('count', $filecount);

In Before form pieces add this:
$session = JFactory::getSession();    
if (JRequest::getInt('ff_status', -1) == 0) {
$count = $session->get('count');    
echo 'Number of files is: '.$count;
}

Hope this helps

Regards,
Tihana
The following user(s) said Thank You: Luisserafim

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

Sum attached files sent 2 weeks 6 days ago #263163

  • Luisserafim's Avatar Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 201
  • Thanks: 1
Hi Tihana

Can you change "yourfolder" with "formid"?

Remember your last help?:

go to form advance properties > more options > Form pieces > Before Form and copy this code :
$this->execPieceByName('ff_InitLib');
$db = JFactory::getDbo();
$db->setQuery("Select Max(id) From #__facileforms_records");
$next_record_id = intval($db->loadResult()) + 1;
ff_setValue('formid', $next_record_id); //  "formid" is element name in which you want to display the record id

crosstec.org/en/forums/coding-consultanc...ication.html?start=0

tx in advance

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

Last edit: Post by Luisserafim.

Sum attached files sent 2 weeks 6 days ago #263164

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6926
  • Karma: 3
  • Thanks: 493
Hmmm....
it is a little hard in this way.

Please give me some time, I will try to find an alternative

Regards,
Tihana

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

  • Page:
  • 1
  • 2
Time to create page: 0.046 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!