Data Validation and error msg

J

janetpurch

I am new to infopath.Perhaps my previous post was unclear.
I created a textbox control that is required. I checked the cannot be blank
box. I also added data validation that says if the field is blank, a dialog
error msg to enter the field will pop up. During testing,the dialog box does
not pop up if I tab through and do not fill in the field. it only appears if
I enter something in the field and then go back and delete it. Same thing
happens if I create a rule with the instructions.
How can I get the error msg to appear as soon as the user skips the field?
 
R

Ravi G

HI,

write code
thisxdocument.dom.selectsinglenode(xpath of the field).text.length=0
{
alert(your text)
}

for the field for which you want to show popup.
 
F

Frederik Van Lierde

If you are using InfoPath 2007m did you select ´Show dialog box
message immediatly yhen user enter invalid data´

Under Data Validation, when enetering the conditions

Frederik
 
J

janetpurch

Frederick:
I am using InfoPath 2003.
I will try the submit button rule.
thanks so much.
 

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