Clearing/resetting forms in InfoPath 2007

A

atmorebamafan

After the user has entered all info and printed form, how do you clear fields
without having to put rules or conditions on all the fields (i.e. setting
them to null or blanks)?

Thanks in advance
 
G

Gavin McKay

Hello,

Normally you would just ask them to fill a new form out again. Is there any
reason why you want to keep the same form?

Gavin.
 
A

Art

I am facing the same issue in 2003.

We want to keep the same form open since it gets used multiple times
throughout the day and do not want the user to have to keep opening the form
from a link each time.
 
G

Gavin McKay

I don't know if there is a way to do this via InfoPath without using code...
I can think of two code options:

1. On submitting the form, write code that would close the current form and
open a new one of the same type; or
2. Write code that would loop through every element of the main data
connection and set each element to "empty string"

Gavin.
 
A

atmorebamafan

Gavin, thank you for your reponse.

The reason for keeping the form open is that accounting is using it for
check requests and they may have 20 to 30 or more at a time and it would be
convient for them to clear the form after printing instead of opening it each
time. Resetting the fields to null and zero seems to be working for now, so
we will leave it that way.

LA
 
A

Art

What I found is that setting the fields to blank will work as long as you are
not submitting the data to a SQL database. If you are, subsequent
submisisons are not stored
 
G

Gavin McKay

Hi,

That's interesting that you can't resubmit, but in some ways I'm not
surprised. InfoPath is by default set up to submit data and then close -
it's a "collect data, send it in, ok i'm done" application. Getting it to do
something else makes your solution more complex!

Having said that, there are valid situations where you do want this to
happen i.e. you submit a form, but the next submit you want to do has most of
the same information.

Gavin.
 
M

misbips

In InfoPath 2007, on the submit form option, there is a field where it asks
what you want to do after submission, one of the options is open a new blank
form. I gather that wasn't available in 2003? (I've never used 2003.)
 

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