Skip to main content
Legacy User
August 1, 2019
Solved

How to design template to show recurring data

  • August 1, 2019
  • 18 replies
  • 210 views

I am in need to show multiple parts information in Document generated from SpringCM.

Currently in the document template I can use merge fields to populate the data but I need to show Part name in each line, number of parts can vary from 1 to 10. How can I define the templates so contents are populated in a loop.

Best answer by Community Expert

There is a conditional tag. Unlike the current tags you have used this one will require a Match/NotMatch attribute as well as a closing tag. If the select evaluates to the value in Match or not evaluate to the value in NotMatch then the content will be displayed.

<# <Conditional Select="" Match="" /> #>Content to show or hide<# <EndConditional/> #>

<# <Conditional Select="" NotMatch="" /> #>Content to show or hide<# <EndConditional/> #>

Hope this makes sense.

18 replies

Legacy User
August 7, 2019

@Zakee Goliak​  This worked like a charm, thank a lot. Can you guide me to some reference where I can learn how to use these tags, I am sure there are more tags which I might need in future.

Legacy User
August 8, 2019

Here you are , https://support.docusign.com/en/guides/SpringCM-Document-Generation

Follow the Word Template Merge tags

Legacy User
January 11, 2020

file:///C:/Users/ae421/Documents/Andres/FOTOS%20PRIVADAS/Summary%20(2).pdf

https://sandwicheria-tito-santos.negocio.site/

Legacy User
June 3, 2020

Ok jumping in to this one. I have a document that I've built the repeat conditional format in but how do I add a page break so it does not cut in the middle of the table?

Example I know that 4 sets of data fit perfect, the 5th set of data breaks in the middle and repeats on the next page. So is there a way to create that break so it jumps to then next page without having to create multiple documents if the there are more than 4 call outs in the workflow?

Hey Zakee!

Legacy User
June 3, 2020

Hello FMA, haha

A way I believe you could solve this matter would be to insert a conditional before the table, since you know where the break is, that would check for the number of rows present. If the conditional evaluates above your tolerance then the page break within will be exposed, this starting the table on a new page.

Legacy User
June 3, 2020

Thanks Zakee, not sure how to write that but Ill give it a shot

Legacy User
June 4, 2020

Can't figure it out.. Any help anyone can offer would be appreciated.

Legacy User
July 17, 2020

The best option I think would be to create a table with just one cell as your outer table and have a table with those rows inside that table. Then, you can set the outer table's properties to not allow the row to break across pages. I assume your repeat tag is around the entire table which would remain the same, but this would probably solve your problem without having to worry about counting how many rows you have and trying to bake in a conditional tag with a page break. Good Luck!

2020-07-17_18-46-57