I am trying to get Word to pre-populate a filename from several document properties specified by the user in the DIP. These documents are created from a template.
So, in the DIP, I have five fields:
- the standard Title field
- custom field 1
- custom field 2
- custom field 3
- custom field 4
Ideally, the Title column would concatenate the four custom fields, but it doesn't seem like that's doable. I'd settle for the default filename populating like this:
custom field 1 - custom field 2 - custom field 3 - custom field 4.docx
I can kind of get this working by inserting the doc properties consecutively as the first block of content in the document, but that creates a runon:
custom field 1 custom field 2 custom field 3 custom field 4.docx
It seems the hyphens act as a sort of "full stop" for populating the filename. If I include hyphens between the doc property fields, i only get:
custom field 1.docx
These documents will be saved to a SharePoint library (and in fact are created using a content type in SharePoint, if that makes any difference). I suppose I could add an event handler to assign the filename, but I'd prefer to avoid that if at all possible.