Can I have my own SAVE button inside the form?

P

Pedro Innecco

Hi all,

I have designed a form for submitting expenses to a form library in MOSS
2007, which is to be filled-in using the Forms Services.

In order to submit the form, the user must click on a custom SUBMIT button I
have added into the form, which will submit the form using a custom
nomenclature for the filename.

Because of such nomenclature, I removed pretty much all buttons from the
Infopath Form Services. In particular, so users can't click on SAVE and
add-in any name they want (thus breaking the custom nomenclature).

However, I would like users to be able to GO BACK into the form and perform
changes. And since they don't have a SAVE button, they simply can't save
changes!

Is there a solution for my case available? Any thoughts?

I was wondering if I then could add a control for a standard command button
(that is, not a button on the Form Services toolbar), and allow users to
click on such button to save. I would then use hidden data field to make the
SAVE button visible or not.

Thanks a lot in advance,
Pedro
 
G

gcadmindude

Pedro,

I do something similar with a service request form. Try this and see if it
works for you. How you determine the files' name will probably determine if
this will help....

You may have thought of this already but...

I'm guessing the users can open the saved form after they submit the form
the first time....I'm also assuming the file name is created using some
combination of constants and variables drawn from the form itself.

If so, go into the submit function you created and allow the submit button
to overwrite existing files if they exist.

Depending on the function you use to create the files on submission and the
fields you're drawing from to create your file name, this should allow the
user to re-submit the form and overwrite the previous form with their changes.

Hope this helps

Michael
 
P

Pedro Innecco

Hi Michael,

This is a good point. I can create a submit button based on rules, and use
variables to determine which method of submission I can use. However, by
always submiting the form you are in fact chaning the modified date of the
form...

Thank you,
Pedro
 
P

Pedro Innecco

Michal,

Before you say anything. I got my issues MIXED UP. By this request I should
always expect the modified date to change if I either save or submit the
form, of course :)

I got mixed up with another isse. I would like to have a CLOSE button on my
form, which would simply CLOSE the form without asking questions and not
attempting to re-submit it.
 
M

myost

Michal,

Before you say anything. I got my issues MIXED UP. By this request I should
always expect the modified date to change if I either save or submit the
form, of course :)

I got mixed up with another isse. I would like to have a CLOSE button on my
form, which would simply CLOSE the form without asking questions and not
attempting to re-submit it.









- Show quoted text -

Pedro,

I hope I have your question right but....

There is an action that you can put behind the button that will do
just that. If you select to close the form and NOT prompt the user to
save the file there are no prompts to the user.

So in effect, you could click on a button and have the form be
resubmitted and overwrite if any existing forms with the same name and
then have the form close without prompting the user for any further
action.

Does that help?

Michael
 

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