blank fileds get autopopulated after Submit button is pressed.

T

- the humble me -

Hi,

I'm maintaining some Infopath Forms (2003) that load and submit data thru
web-services. A couple of integer fields are allow to be blank. If the user
leave them blank and hit the Submit button, these fields get auto-populated
with the value of "-1" and the background color changes to highlight these
fields when the "The form has been submitted successfully (not the exact
wording)" dialog is displayed. No data is actually saved for these fields and
they will be blank next time the form is opened again. Similarly some
date-time fields get auto-populated with "1900/01/01" upon form submission.

This behavior is annoying some users as they feel the need to re-opening the
form immediately after each submission to verify the auto-populated values
don't get saved. Any help to remove/disable this behavior would be greatly
appreciated.

Thanks in advanced!
 
P

Paresh

Hi,

I'm maintaining some Infopath Forms (2003) that load and submit data thru
web-services. A couple of integer fields are allow to be blank. If the user
leave them blank and hit the Submit button, these fields get auto-populated
with the value of "-1" and the background color changes to highlight these
fields when the "The form has been submitted successfully (not the exact
wording)" dialog is displayed. No data is actually saved for these fields and
they will be blank next time the form is opened again. Similarly some
date-time fields get auto-populated with "1900/01/01" upon form submission.

This behavior is annoying some users as they feel the need to re-opening the
form immediately after each submission to verify the auto-populated values
don't get saved. Any help to remove/disable this behavior would be greatly
appreciated.

Thanks in advanced!

Check out the rules applied on submitting and opening of the infopath
form. I dont have idea about InfoPath 2003, but in Infopath 2007, you
can take a look at Tools->FormOptions->Open Save and Tools->Form
Options->Submit Options

Regards,
Paresh
 
C

Clay Fox

As Paresh says it is something in the rules or defaults on your fields or it
is something with your webservice.

What I would do for a test is put a rule on the field that has an alert
action which displays the field's value. Then each time it changes you would
get a pop up witht he new value. This might be helpful to see when it is
exactly changing then you may be able to find where and why.

Let me know if you need further assistance.
--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 
T

- the humble me -

Hi Clay,

I checked to make sure there is nothing like display format, rules, or
submit options that would automatically fill in "-1" for the int field and
1900/01/01 for the date. These fields are elements of a repeating table,
which may not matter to the problem but I thought I would just mention it.

I added a rule to pop-up a dialog box when the field becomes non-blank, and
after the "Submit" button is clicked the pop-up shows up. However how can I
tell what causes the field to be non-blank (i.e. whether Infopath is doing
that or the web service "submit" operation - I can roughly tell "when" but
not "where" or "why" the field is changed)? I suppose I can temporarily
change the "submit" operation in the Web Service to a dummy method, but if
the problem still exists how do I go from there? Is there any logging or
debugging mode within Infopath that could be enabled?

Thanks in advance!
 

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