Contains Statement - InfoPath Dev
in

InfoPath Dev

Contains Statement

Last post 11-01-2007 08:31 AM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-23-2007 05:12 AM

    Contains Statement

    I am looking for code to check and see if a field contains a "."  I am using IP 2007 and Jscript.

     

    My code is something like this:

     

    var summaryField = XDocment.DOM.selectSingleNode("group1/my:field1");

    Then i want to do an if statement and that is where i need the contains statement something like

       if(summaryField.text == contains(summaryField.text, '.');

     

     

    That isnt the right syntax, but thats what im looking for.  Just something to check and see if that field contains a '.".  Any ideas? Thanks

     

  • 11-01-2007 08:31 AM In reply to

    Been on Vacation and getting caught up but if you have not gotten this yet.

    The contains function would return a True or False which would not probably be the value. I would think you would want if(contains(summaryfield.text, "."));

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.