C
Chris Moutray
Hi all,
I've got a infopath form setup with two views admin and user (default). The
form is very simlpe and holds about eight fields which i created from a
schema. From the form options I disabled the 'Save, Save As' option and have
added my own button (called Submit) to submit the form to a SharePoint form
library. When the form submits the filename is created from two of the fields
on the form. This is why i disabled the Save options. I've done this using
rules steering away from the script editor. I'm new to infopath (and
sharepoint) but im guessing this is all basic stuff so far.
The admin view has been set up to approve the data entered into the form and
I've renamed the Submit button to Save Changes.
The problem I've come across is that if the admin changes any of the data in
the fields which is used to create the filename, a new file is create rather
than changing the existing file. What would be the best way to create a
simple Save Changes button for the admin view? I think my only option is to
add a new button and write a bit of script to save the form from the onclick
event of the button something like eg XDocument.Save
I couldnt see a Save Form option in the Action List. Also I thought about
setting up a new submit action in the Data connection wizard but I couldnt
find a keyword which references the current filename.
Anyone got any thoughts on this and is this the right route to take?
I've got a infopath form setup with two views admin and user (default). The
form is very simlpe and holds about eight fields which i created from a
schema. From the form options I disabled the 'Save, Save As' option and have
added my own button (called Submit) to submit the form to a SharePoint form
library. When the form submits the filename is created from two of the fields
on the form. This is why i disabled the Save options. I've done this using
rules steering away from the script editor. I'm new to infopath (and
sharepoint) but im guessing this is all basic stuff so far.
The admin view has been set up to approve the data entered into the form and
I've renamed the Submit button to Save Changes.
The problem I've come across is that if the admin changes any of the data in
the fields which is used to create the filename, a new file is create rather
than changing the existing file. What would be the best way to create a
simple Save Changes button for the admin view? I think my only option is to
add a new button and write a bit of script to save the form from the onclick
event of the button something like eg XDocument.Save
I couldnt see a Save Form option in the Action List. Also I thought about
setting up a new submit action in the Data connection wizard but I couldnt
find a keyword which references the current filename.
Anyone got any thoughts on this and is this the right route to take?