Are you attaching the files to the envelope in the task or the PDF in the form? That setting is to copy attachments from the tasks. My guess is that you are adding the attachments to the PDF and then re-rendering at the next step.
I am attaching them to the PDF. I am using the same template at every step and want the attachments in the form after the workflow ends. So I want the attachments on the form at all steps so as not to be confusing to the users.
Here is the direction I am heading, not sure if correct: I copied the Default Render then edited. I added a input/output variable called attachments of type map, subtype document. I set Attachments in the input section of the Render Form step to that variable.
There are two methods to deal with an attachment. The 1st one is to embed it in the PDF using the form to transform the attcahment around. The 2nd way is to use the attachments on the Task (shows up in the Webspace UI. The adding of the map of objects on the User step is using the 2nd way. The way you described how you added the attachments is using the 1st way. Because you are using an XFAForm var that means that at each step the PDF is getting regenerated (combining the template and data together). When you submit the completed form you are only sending in the data (that does not inclide the attachments). Hence when the form is recreated at the next step there are no attachments.
NOw to fix your problem. I suggest that you use the 2nd technique (it is easier). On the TaskManager endpoint for your process there are two checkboxes that need to be set on. The "Show Attachment Window" and the "Allow Attachment adding". Once this is done when you click on the start task, there will be a new tab called attachments (next to the form tab) that will allow you to deal with attachments. Now the settinngs that you have been playing with on the User task will be in effect.
Unfortunately, what is easier for the developer rarely has much impact on how the customer wants it to work. With option 2, there would still the issue of getting the attachments into an archive version of the form for after the workflow is over. Also, the PDF still has an attachment tab which allows attachments that will disappear. That is quite confusing for the user. Can that tab be disabled on a per form basis?
How can I do option 1? I looked at the submit tab of my submit button. Submit As is currently XDP. Under include, PDF is not checked. I am assuming I either need to submit as PDF, or check the box to include PDF with the XDP. How to get them into a variable from there, I have no idea at this point.
For the option to appear in the PDF (assuming Reader is beingn used) the form must be Reader Extended. If it is not Reader Extended then that tab will not appear. You can always add the attachments from the task to the PDF as the last step before archiving (LC Assembler can do that for you).
If you want to stick with the PDF route then you must change your renderer to the Default one and use a document Form instead of an XFAForm. This will allow you to submit a full PDF and route it from step to step. Note that you will have to modify the submit button on the form to submit PDF and not XDP. Look at the _FSSubmit button (it is hidden) if you used the process fields.