Skip to main content

Hello! I’d like to know how to make a form field repeatable for document generation purposes. For example, when filling in the name of the company’s legal representative — sometimes there's only one, but in other cases, there may be multiple representatives. How can I allow the user to add all of them so that the document generation includes the information of each representative correctly. Thank you!

Hello ​@rodvillani 

Welcome to the DocuSign Community!

you can use a custom table field in your form configuration.

Start by defining a table with columns such as Name, Title, Email, etc. This way, the user can enter the details of one legal representative by default, and if there are multiple representatives, they can simply click "Add Row" to input additional entries.

During document generation, all rows in the table will be included, ensuring that each representative is correctly reflected in the final output.

Thanks!

👪 DocuSign Community Leaderboard Top 5 contributor
💹 Ranked #3 in the Reply Royalty category in DocuSign Community Wrapped 2024
🤝Let’s LinkedIn and rollPawan Gangwani - EY | LinkedIn


Hi ​@Pawan Gangwani Thanks! I didn’t see your answer before. 

The table with repeatable rows works, visually.

The problem I’m facing is that I need to extract the data from those repeating rows individually, because I have to insert them into the middle of a text block, not as part of a table in the final document.

When I try to reference the fields, I get this error:
TemplateErrorExists: TableRow tag must be placed in a table.

Is there a way to properly extract the individual field values from a table with repeatable rows, so I can use them inside paragraphs or text sections? Any help or guidance would be greatly appreciated!

Thanks!


Hello ​@rodvillani 

I understand your requirement. To achieve this, you'll need to use C# code within the workflow to extract the values from the repeatable table rows. Once extracted, you can store them in variables or format them as needed and then merge them into the document at the appropriate text sections instead of within a table.

Let me know, if you need the C# code or you can write it using chatgpt.
Thanks!

👪 DocuSign Community Leaderboard Top 5 contributor
💹 Ranked #3 in the Reply Royalty category in DocuSign Community Wrapped 2024
🤝Let’s LinkedIn and rollPawan Gangwani - EY | LinkedIn


Reply