<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9828.aspx</link><pubDate>Thu, 22 Jun 2006 17:24:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9828</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9828</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Have you set up your data connection and enable your Submit commands and buttons option in the Submitting Forms (under Tools)?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9827.aspx</link><pubDate>Thu, 22 Jun 2006 06:58:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9827</guid><dc:creator>nupur</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9827</wfw:commentRss><description>Hi&lt;br /&gt;i converted the code to VB script and tried running it but it dosen't run... i guess in the code the on Submit request event is not really being executed... do i have to change some settinge or som properties to do that?</description></item><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9826.aspx</link><pubDate>Wed, 21 Jun 2006 21:50:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9826</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9826</wfw:commentRss><description>Hi Nupur,&lt;br /&gt;&lt;br /&gt;Here is a piece of JScript sample code.  Hopefully, this will help you.&lt;br /&gt;&lt;br /&gt;var objField =&lt;br /&gt;XDocument.DOM.selectSingleNode("//my:myFields/my:field1")&lt;br /&gt;if(objField.text == "")&lt;br /&gt;{&lt;br /&gt;XDocument.UI.Alert("field1 field must be filled in!");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;var objSubmitAdapter = XDocument.DataAdapters("Main submit");&lt;br /&gt;objSubmitAdapter.Submit();&lt;br /&gt;}&lt;br /&gt;</description></item><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9825.aspx</link><pubDate>Wed, 21 Jun 2006 11:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9825</guid><dc:creator>nupur</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9825</wfw:commentRss><description>hi&lt;br /&gt;i tried using the logic u gave in by coverting it to a VB Code but it is not giving me the desired result......&lt;br /&gt;One more thing...i tried to use the submit options and fiving a customized message...that is not working......&lt;br /&gt;i fail to understand y!!!&lt;br /&gt;Any help wud be greatly appreciated!!!&lt;br /&gt;Thanks&lt;br /&gt;Nupur</description></item><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9824.aspx</link><pubDate>Mon, 29 May 2006 06:50:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9824</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9824</wfw:commentRss><description>Hi, &lt;br /&gt;You can set your own  message, when user tries to submit the form with validation errors,&lt;br /&gt;if(thisXDocument.Errors.Count &amp;gt;0)&lt;br /&gt;{&lt;br /&gt;thisXDocument.UI.Alert("Your message");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I hope this will help for you,&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description></item><item><title>Re: Data validation</title><link>https://www.infopathdev.com:443/forums/thread/9823.aspx</link><pubDate>Mon, 29 May 2006 06:16:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9823</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9823</wfw:commentRss><description>Okay the first answer i just figured out myself but second one unfortunately not. So if someone can help me, would be nice.</description></item><item><title>Data validation</title><link>https://www.infopathdev.com:443/forums/thread/5627.aspx</link><pubDate>Mon, 29 May 2006 06:11:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5627</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5627.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5627</wfw:commentRss><description>Hello all,&lt;br /&gt;&lt;br /&gt;does someone out there know how i can set up a data validation which checks if the entered value is not longer than six characters (can be numbers or letters).&lt;br /&gt;Additional question: Can I change the message that pops up when the user tries to submit the form but hasn't filled all mandatory fields yet ?&lt;br /&gt;&lt;br /&gt;Thx</description></item></channel></rss>