locked
InfoPath String Function "Contains" RRS feed

  • Question

  • how do we use infopath calculated value having string function   "Contains(within_text,find_text)"

    Syed Shujaat Ali

    Sunday, July 29, 2012 5:47 AM

Answers

  • Hi,

    It will return true/false depending on the result.

    contains(field1, field2)

    will show true if field1 contains the value specified in field2, otherwise it will display false.


    InfoPath MVP | SharePoint 2010 MCITP & MCPD | Office 365 MCITP | CUBE4 SharePoint Blog | InfoPathTips.com

    Monday, July 30, 2012 9:20 AM
  • hi 

    use contains(field1, field2) as suggested by Chris. 

    Take one hidden field in form & set its value to anything let's say 1. 

    And add validation rule if hidden field value is 1 then show message that pattern match else dose not match.

    thanks 


    amol

    Monday, July 30, 2012 9:25 AM

All replies

  • Hi,

    It will return true/false depending on the result.

    contains(field1, field2)

    will show true if field1 contains the value specified in field2, otherwise it will display false.


    InfoPath MVP | SharePoint 2010 MCITP & MCPD | Office 365 MCITP | CUBE4 SharePoint Blog | InfoPathTips.com

    Monday, July 30, 2012 9:20 AM
  • hi 

    use contains(field1, field2) as suggested by Chris. 

    Take one hidden field in form & set its value to anything let's say 1. 

    And add validation rule if hidden field value is 1 then show message that pattern match else dose not match.

    thanks 


    amol

    Monday, July 30, 2012 9:25 AM