docMaker User guide
  • 👋Welcome to docMaker
  • Features
    • Create pdf from docx template
      • 🏗️Build your docx template
        • Overview
        • Text substitution
        • Images
        • Conditions
        • Loops
          • Simple list
          • List with multiple values
          • Adding rows into a table
          • Loops in columns + lines (grids)
          • Nested loops
        • QR codes
        • Rich text & html
      • ⚙️docx_fill_convert API parameters
    • Fill-out pdf forms
      • 🔧Build your pdf form
      • ⚙️pdf_fill API parameters
    • Print web page to pdf
      • ⚙️page_pdf API parameters
  • INTEGRATIONS
    • Typeform
      • Create pdf or docx for each Typeform response
    • Bubble.io
      • 📝Easy pdf from docx template
      • 📋Fill-out pdf forms
      • 🖥️Webpage to pdf
    • Make.com
    • Coda
    • Xano
    • Zapier
    • API
  • FAQ
    • 🫧Bubble.io questions
    • 📄Questions on docx templates
    • 📙Questions on pdf templates
Powered by GitBook
On this page
  1. Features
  2. Create pdf from docx template
  3. Build your docx template
  4. Loops

List with multiple values

PreviousSimple listNextAdding rows into a table

Last updated 1 year ago

When sending multiple values in your JSON data, you simply have to add as many tags as required in your template :

{
"orderLines": [
 {
   "item_name": "trousers",
   "item_price": 100
 },
 {
   "item_name": "shirt",
   "item_price": 50
 }
]
}

Copy

Template

Result

{#orderLines}

- Ref. : {item_name}, price : {item_price}€

{/orderLines}

  • Ref. : trousers, price : 100€

  • Ref. : shirt, price : 50€

🏗️
➡️