Array in document duplicating pages

Hi,

I have a form that contains a dropdown of employees (data source is a OneDrive excel) that allows for multiple selections. I'm trying to get the array to generate in my document as a list separated by commas. If there are no selections, then I use RTC to hide the line.

In my document, I have:
Interview Manager(s): {{reportingManager.Length}:hide-block-if(value== 0)} {{reportingManager}:join(“, “, value)}

and it generates correctly (screenshot below), but creates a copy of the document for each item in the array. So instead of a one page result file, if I had 3 'reporting managers' in the array, I have one document with 3 pages, each exactly alike. What am I doing wrong?

image

Thanks!

Hello @EHaya,

Could you share the JSON and the template at support@plumsail.com with a reference to the thread?

I'll try to reproduce the issue and correct the template or JSON to avoid duplicates.

Best regards,
Petr
Plumsail team

Hi @EHaya,

This behavior is because an array of simple values is being processed.

Please use hide-block-if-nothing formatter.

Best regards,
Petr
Plumsail team