Infopath 2003 Button

B

BigJojo

I am new to this app and I have created a form with a "Submit" button and
want the form to be saved to a directory once the button is clicked and don't
know how to right the code? I would be greatful for any help.

Thanks
 
R

Ravi G

Hi,

Where you want to save the form?
Do you want to save it to share point, if so follow the foollowing procedure.
1) First take a data connection to the form library where you want to save
the form as follows Tools-->Data connections-->Add--> Create a new connection
to (submit data)-->To a document library on sharepoint-->Give the address of
the share point library
2) Now go to button properties
3) Select Submit in action drop down
4) Go to Submit options
5) check allow user to submit this form check box
6) Select Share point document library in rop down
7) Select the data connection you created in data connection drop down
8) Click on apply
 
A

Anuma(GGK Tech)

Hi,

You will get the "Form Name" field while taking the data connection with
following Ravi steps.

use concat function in the filename field. This will not submit the
duplicate file names in the form. We can create duplicate forms with using
only “Name†field in the file name. Use below function in the FormName field.

concat(Name, "", now())


Nameà --> Xpath for which field you want to display in the file name.
 
B

BigJojo

Ravi,

I am not saving to a Share Point, just a network directory for others to
view the forms. However, I do want to save the form as it's own file, not a
copy. So can I have the form prompt for a file name at the "Submit" process
of clicking the button?
 
A

Anuma(GGK Tech)

Hi,

As of my knowledge, we cannot submit forms to network locations using data
connections. I think we can do this by using Code.
 

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