cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple Attachment controls in Nintex form

Jump to solution

Hi,

i evaluate Nintex Workflow/Forms 2013 and have the following requirement:
In Request Data Action two documents have to be uploaded. These documents have to be copied to a document library. While copying i want to add some metadata ("DocumentType"...) to the documents.

In this post
http://vadimtabakman.com/nintex-forms-2013-may-2014-release.aspx
Vadim Tabakman mentioned the new feature "Multiple Attachment controls in the form".
I thought: Hey, cool!

I use a Nintex Form with two attachment controls to distinguish between document types.

Upload with attachment control 1 = metadata "DocumentType" = summary

Upload with attachment control 2 = metadata "DocumentType" = full text

So far so good.

But Request Data Action uses only one variable for the attachments.
In this way a differentation by attachment controls is not usable.

I'm wondering where is the benefit of multiple attachment controls?
Or how can I meet my requirement?

Jan

Tags (2)
Reply
8 Replies
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

Bumping this one up. I have the same requirement.

I note you can name the Attachment controls. Perhaps there's a way of associating the name of the attachment control with the attachment that comes from it.

Anyone of the many people smarter than me think of a way of doing this?

‌ I found another post you mentioned using the CSS Class in the attachment control to access it with JS. Is there a way of using this to perhaps rename the attachments (in this case a photo) to help identify where they came from.

In my case I have "Approach", "Car Park" and "Front of Store".

Is there a way you can think of where I have 1 or more attachments renamed into a format like

119-Approach1.jpg

119-Approach2.jpg

119-CarPark1.jpg

119-CarPark2.jpg

119-CarPark3.jpg

119-FrontofStore1.jpg

119 just being an example ID in this case.

0 Kudos
Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

just to understand correctly, is the main concern just to identify which file is uploaded by which attachment control?

or really to rename attached file name, so eg. you upload pic999.jpg to 'Approach' control and you want to somehow (automatically?) rename it by that control to Approach1.jpg?

are you looking for pure form solution or could it be done with workflow?

0 Kudos
Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

Identifying which file is uploaded by which attachment control is the aim. Naming the file was purely an example that came to mind as the attachment would have no metadata that could be applied whilst in the form.

Form and workflow will work as a solution also.

I've designed the form in O365 for Nintex mobile, but could be on-prem also if required.

0 Kudos
Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

if you want to use it for inputs from nintex mobile I would suggest to go with workflow way (javascript will not work on mobile).

 

so, name all the attachment controls on the form to easily identify them.

when you submit a form, each attachment control will get created respective XML element (by control name) in hidden FormData column. elements values will be semicolon separated list of file names.

ie, with single query XML action you can what you ask for

FormData's XML might look like this

<?xml version="1.0" encoding="utf-8"?>
<FormVariables>
     <Version />
     <Attachments1 type="System.String">pic2.jpg;pic24.png</Attachments1>
     <Attachments2 type="System.String">pic3.jpg</Attachments2>
</FormVariables>
Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

Nailed it. Thanks ‌.

Once completed I'll post the full solution on here.

Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

How can I find or query the "hidden FormData column"?

because this is what I need exactly, my requirements is to send different emails with different attachments base on the control name.

0 Kudos
Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

use the Query XML action and the "FormData" column is under Item Properties.

Cassy Freeman‌ covered it in her blog.

https://community.nintex.com/community/build-your-own/blog/2017/10/13/getting-unconnected-data-from-...

Reply
Workflow Hero

Re: Multiple Attachment controls in Nintex form

Jump to solution

Thanks!

That really helped me.

0 Kudos
Reply