You are viewing limited content. For full access, please sign in.

Question

Question

Uploading document in a forms collection and storing metadata correctly?

asked on January 12, 2022

I have a form with a collection that allows a file upload.  HR will use this form to upload documents for multiple employees.  When saving the attachments to the repository I want to be able to associate the employee number for an individual record in the collection as metadata for that record's uploaded file.  I've tried this:

{/dataset/MyCollection/Employee_Number}

but it stores all employee numbers from the collection into each record's uploaded document.  I've also tried this:

{/dataset/MyCollection/Employee_Number[Row(0)]}

but it stores nothing in the metadata.

Is there a way to do this?

Thanks!

2 0

Answer

SELECTED ANSWER
replied on January 12, 2022 Show version history

Remove the 0 from the parentheses. It should just be [Row()] to indicate the row function, like

{/dataset/Collection/Item[Row()]}

2 0
replied on January 12, 2022

Can't believe I missed that...I had it set up that way in another form so I have that knowledge but it was temporarily lost!

 

Thanks.

0 0
replied on January 12, 2022

It happens, I still had to open up one of my forms to confirm lol

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.