Answered by:
InfoPath String Function "Contains"

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
- Proposed as answer by Amol.Amol Monday, July 30, 2012 9:22 AM
- Marked as answer by Xue-Mei Chang-MSFT Monday, August 6, 2012 9:02 AM
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
- Marked as answer by Xue-Mei Chang-MSFT Monday, August 6, 2012 9:02 AM
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
- Proposed as answer by Amol.Amol Monday, July 30, 2012 9:22 AM
- Marked as answer by Xue-Mei Chang-MSFT Monday, August 6, 2012 9:02 AM
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
- Marked as answer by Xue-Mei Chang-MSFT Monday, August 6, 2012 9:02 AM
Monday, July 30, 2012 9:25 AM