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

Question

Question

Table - Attachment Upload

asked on February 17, 2015

Hello,

I am trying to build a Laserfiche Form that will allow users to submit agenda item topics. I would like it if users could submit multiple topics at a time, and a table seems to be a nice way to collect that information (below is a screenshot of my table). 

My form is really just used for gathering the information. Once the Form is submitted, I am using a service task to initiate a Laserfiche workflow.

 

My workflow is able to retrieve the forms content and, for each row in the table, generate entries and apply template field information based upon that specific row using the “For Each Row” activity.

My issue is that I can’t seem to find a way to grab the name of the uploaded file and also apply that to my template field information. I thought that I could potentially just use the %(forEachRow_Upload_Attachment) and that this token would include the name of the file for that row, but it doesn't pass any information when I assign it.  

I have reviewed some of the other knowledge base articles here and I am trying to avoid creating sections for each submitted topic. Is it possible to pass the upload files name somehow through the Retrieve Laserfiche Forms Content activity? 

 

1 0

Replies

replied on February 19, 2015

Hello Justin, 

I have a couple of suggestions for retrieving the attachment name: 

1. Save the attachment to the repository and then use a search repository task within Workflow to locate it. From there you can link documents or retrieve the document name. 

2. Use JavaScript to populate the name of the attachment in another field in the table row. 

 

I hope this helps! 

 

 

1 0
replied on October 28, 2015

What would JavaScript look like for this?

0 0
replied on October 28, 2015

Upload_Attachment is a collection of files since you could have multiple attachments in each row. You can go through it with For Each File and it will generate tokens for the name, size and extension of each attachment.

0 0
replied on July 10, 2021 Show version history

Starting with version Forms v10.2.1, you now have the ability to apply an index directly on the variable in the table and it will automatically associate metadata from the corresponding row for each attachment.

The syntax is {/dataset/Table/Column_1[Row()]}. In this example, the Table is the variable for my table and Column_1 is the variable for my field that I want to assign as metadata to my attachment. You can do this mapping entirely within forms (save to repository task) and won't need to use workflow. 

Hope this is helpful to others!

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

Sign in to reply to this post.