I am able to display my survey results of onsite_representatives records all at once with the code snippet I'm using in my word document template (${#signatures} ${onsite_representative}${/}), as it iterates through them all (see output screenshot at top).The website I'm using as a reference (link at bottom) says "to display records in a table, put the start tag ${#signatures} in the first cell of the table and the end tag ${/} in the last cell of the table. That worked but displayed results vertically in a column instead of a 1 row 3 column output like I wanted (see middle screenshot). So my solution is to call each result individually per cell so it can read Andrew (Row 1 Column 1), Pete (Row 1 Column 2), Jesse (Row 1 Column 3). Does anyone know how to do this? I tried
${#signatures} ${onsite_representative|resultRecordCount:1}${/}" but when uploading to survey123 got this error (bottom screenshot).
Website Link: https://survey123.arcgis.com/featureReport/quickReference?surveyItemId=65ccb653d87d4183b1464905861c4...
Will there always only be a maximum of three on-site representatives, or could there be more? If say, five names were entered, how would you want those to display?
If you provide the Feature Report (docx) and give a little more detail on how you would like the output to look, it would be helpful.
Second example I have above is just demonstrating how you would pull additional fields from your signatures repeat, and how it would ultimately look in the Feature Report.
If this is what you are hoping for:
You cannot do this dynamically with a repeat. You will have to hard-code in the fields. You can do this with items in a repeat, but that doesn't seem like the most optimal set-up.
You can do something like this though relatively easily (with the advantage of it being dynamic):
Thanks for your reply. Yes I am aiming to do this:
Although the option you have at the bottom...(screenshot below) would also suffice. Would you mind elaborating a little on how to do that?
As previously mentioned, you could do the first method, but hard-coding it to appear that way would be the easiest solution.
As for the second solution, you will want something like this:
No tables needed. Just centre align the text and you're good to go. That closing tag will be where the next name appears. You can play around with the numbers in the size parameter to get the signatures to appear properly (more on that here under Images and Other Attachments).
Thanks again, I see. So for that second solution I had entered:
${#signatures}${onsite_representative}
${#signatures} ${rep_signature | size:400:300}
${/}
center aligned in my word document. When uploading to Survey123 got the error shown in the (top) screenshot below. I then tried to enter:
${#signatures}${onsite_representative}
${/}
${#signatures} ${rep_signature | size:400:300}
${/}
which didn't give me any errors but gave me the output in the lowermost screenshot.
A few things to keep in mind:
For your examples...
Example #1:
${#signatures}${onsite_representative}
${#signatures} ${rep_signature | size:400:300}
${/}
You have two start tags but only one end tag.
Example #2:
${#signatures}${onsite_representative}
${/}
${#signatures} ${rep_signature | size:400:300}
${/}
You placed the second end tag in such a position that you have effectively created two separate repeats. Both repeats reference signatures, but both are pulling different information. The first only pulls the Site Representative's name, and the second only pulls the Site Representative signature.
Try this:
${#signatures}${onsite_representative}
${rep_signature | size:400:300}
${/}
I see. When I tried that I got this error:
Can you link your Excel and Word file?