Repeatable sections with file upload

  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Krx created the topic: Repeatable sections with file upload

Hello

I need to build a form with where several fields needs to be repeated.

Project name - textfield
and few other fields.

Among other fields I need to have these fields repeatable:

Files title - textfield
Files description - textarea
Files upload - multiple file upload button

Add New file - a button which expands a form with same set fields like above

Maybe I could have few sections, initially hidden, but shown with action of the button?

My concern is that I don't know if form will work with multiple file upload buttons.

Is this possible with breezing forms?

If yes, I have another question:
Only registered and trusted users will be able to fill the form and do uploads.
Is it possible to set upload file field so that files are saved in specified path?
Like websiteroot/uploadsfolder/$username/$projectname/$uploadfieldname
$username is get from logged in user
$projectname should be get from Project name field.


Thanks
Regards
#233643
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Repeatable sections with file upload

Hi there,

This is all possible with BF and these are the docs you need :

1) crosstec.org/en/downloads/free/form-apps...ows-dynamically.html

2) crosstec.org/en/support/online-documenta...fferent-folders.html

Feel free to ask if you have any other questions.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#233644
The following user(s) said Thank You: Krx
  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Krx replied the topic: Repeatable sections with file upload

Hello

Thanks for the infos :)

Best regards
#233647
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Repeatable sections with file upload

If you have any other questions, let me know.

Pozdrav,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#233648
  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Krx replied the topic: Repeatable sections with file upload

Hello

I managed to create both repeatable sections, and to create dynamic path for file upload fields.
However I have few issues/questions:


In general BF configuration I have this: {mospath}/uploads/
In upload file field upload path I have this: {ff_uploads}/{username}/{field:ProjectName}-{date}|

ProjectName if name of text field which needs to be filled by logged user and it should be part of path for uploaded file

Lets say that username is John, id 007, Project name entered in ProjectName field is: Audio project,
uploaded file is audio.mp3

Expected uploaded path is:
website_root/uploads/John_007/Audio project-2019_01_30-date/audio.mp3

But uploaded file is saved in this path:
website_root/uploads/John_007/{field:ProjectName}-2019_01_30/audio.mp3

Questions:

1. This part of path {field:ProjectName} is not replaced by ProjectName field value,
it always creates folder with this exact value: "{field:ProjectName}"
Any hints how to get field value as part of folder?

2. Is it possible to format date created by {date} as dd-mm-Y?
Atm it formats is as Y-mm-dd
Maybe to use hidden date field formatted as I want and use it as {field:mydate} option?
But this solution returns us to 1st question why is field value not rendered as part of path.

3. Is it possible and what would be the best way to format input from ProjectName field so that
it trims all non latin characters and ads underscores instead of spaces?


Latest Joomla latest BF


Thanks,
Regards
#233689
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: Repeatable sections with file upload

Hi there,

You need to play around with filemasks because truth be told, they do act a bit strange :)
As far as I remember everything before pipe sign ('|') is or atleast it should be FOLDER mask and everything after pipe sign ('|') should be FILE mask.

1) I suspect that it's a issue with pipe position but cannot be 100% sure

2) I never looked into {date} shortcode to be honnest. If you want a certain date/time format as a folder/file mask I suggest you create a hiddine filed inside your form which you can use as mask later on. {field:calendar-with-correct-time-format}

3) Probably the best way would ne to have this element have alphanumeric validation ONLY + JavaScript String replace() Method

Alpha numeric Validation : crosstec.org/en/forums/3-breezingforms-f...ly-ascii.html#117964

If you get stuck along the way, feel free to ask.

Regards,
mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#233717
Moderators: ForumSupporttomeperica
Time to create page: 0.100 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