Error upon submission due to red underline error.

R

RJ

The form cannot be submitted because it contains validation errors. Errors
are marked with either a red asterisk (required fields) or a red, dashed
border (invalid values).

I do not have data validation or need one. I have a form, that when queried
from AD, the Username is underlined like there is an error. Which is normal,
how do I get the form to submit without getting this error? I have the hide
errors in infopath checked, and I just want the form to submit if it has that
error, shouldn't be a problem, just a username that is populated from the AD.
Please help, thanks.

I have a submit button in a section properties, with a rule to set a feilds
value to True then submit to a document library - using browser enabled form.
 
D

Don Reamey \(MSFT\)

Double click on the field that is causing the problems and click on Data
Validation. Make sure there is nothing set in that data validation dialog.
--
Don Reamey
Microsoft
Software Development Engineer
InfoPath Forms Server
http://blogs.officezealot.com/dreamey
 
S

Swathi (GGK Tech)

Hi,
Also verify the data type of the field which is showing the error. Make sure
that the field is accepting the data which is of the data type selected in
the properties.
Once place the cursor on that dotted red line. So that you may know the
exact reason why it is showing the error.
 
R

Rajitha

Hi,
Do you want to submit form even you have error, right?
Then use this code in submit button onclick event.

if (thisXDocument.Errors.Count > 0)
{
thisXDocument.Errors.DeleteAll();
}
Hopes this helps.
 
T

Tim in Ohio

I am having a similar problem and to make matters worse... no field is being
indicated by red asterisk or red wavy line. Also, checking all fields, none
indicate any data validation requirements or "cannot be blank". I too am
stuck.
 

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