field "quantity = 5" provides 5 lines in csv form export - possible ?

Repitol 08 Jul, 2014
Hi there !
I'd like to set up a form for an item with a field "quantity" (Drop Down element) from 1 to 20
that form is to be used with csv export because the csv will be used to generate PDF file using Adobe Indesign
my problem is I need 5 lines in the csv (all the same) when the user chooses quantity = 5
or 6 if he uses qtty = 6
because Indesign creates automatically one PDF per CSV line
and I need 5 pdf when user chooses qtty = 5
Is that possible (maybe using special coding ?)

exemple : product 01 - blue - XL - standard - qtty= 2
should give in csv export :
1 : product 01,blue,XL,standard
2 : product 01,blue,XL,standard

Hope you understand what I need...
Best regards !
Repitol 08 Jul, 2014
Oups my chronoforms version is 4, not 5...🙂
GreyHead 09 Jul, 2014
Hi Repitol,

You would have to hand code the DB Save to generate the five records that you need. It might be simpler to hand-code the creation of a CSV file instead and cut out a step.

Bob
Repitol 09 Jul, 2014
Hi GreyHead,
thanks for your reply. Well, that's right. I'll take a look on the CSV code to see what can be made that way.
If I can't do the job automatically, I'll edit the csv and add the lines needed.
Regards,
Repitol
This topic is locked and no more replies can be posted.