Submit file name

M

Marc Dimmick

when you submit a form with infopath 2007 you can define the construction of
the file name based on functions.

Can anyone direct me to a location which explains this ability and maybe an
example of how it can be used.
 
K

K.Ramana Reddy(GGK Tech)

Hi,

Do you want to use the fields in the form as file name for your infopath
form? or anything else?
 
M

Marc Dimmick

I am looking to build a file name which incrementally renames and multiple
people will be submitting the forms and yes I would like to include a field
in the name.
 
K

K.Ramana Reddy(GGK Tech)

Hi,

When you are creating the dataconnection to submit the form to the
sharepoint library, you need to specify an autogenerated name.
On the second step of the wizard when you specify the url for the sharepoint
library there is a second text box called filename, you can put an xpath
expression in here that uses some of the fields in the form to create an
unique name. Probably the easiest way to do this is to use the concat
function to concatinate multiple fields together
e.g. concat(<field1>, <field2>, <field3>)
your other option is that you can tick the box that says "Allow overwrite if
file exists" but if you did this and didn't specify a unique name you only
ever get one form in the library and each time a user submitted that form
would be updated.

Otherwise,
You can get the value of field you want use as file name using code and then
use that value as file name when submitting the form.
 
M

Marc Dimmick

I am using the wizard and Tools>Submit Options...>Manage(Button)>Modify(Button)
At which time I can put in a file name or function. I have tried concat("UAM
",FirstName + LastName, now()) which returns "UAM NaN2007-09-26T14_34_50"

I would like to get "UAM Fred Nurk - Purchase System - X0002" the next being
"UAM Peter Nurk - Purchase System - X0003"
 
K

K.Ramana Reddy(GGK Tech)

Hi,

UAM Fred Nurk - Purchase System - X0002, these fields entered in any fields
in the form?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top