Excel Cell validation formula conversion into InfoPath validation formula - InfoPath Dev
in

InfoPath Dev

Excel Cell validation formula conversion into InfoPath validation formula

Last post 05-14-2015 01:58 PM by Bre Huston. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-08-2015 05:57 AM

    Excel Cell validation formula conversion into InfoPath validation formula

    Hi,

     I have a following formula in my Excel Form:

    =IF(RIGHT(A1;1)=MID("0123456789ABCDEFHJKLMNPRSTUVWXY";MOD(LEFT(A1;6)&LEFT(RIGHT(A1;4);3);31)+1;1);"ok";"Error")

     It validates the value in a cell A1.  Data to be validated is Finnish social security number, like: 120365-5312 (fictional but valid)

     How to build a similar validation formula in a InfoPath Text Box Control?

     Cheers,

     Jari

  • 05-14-2015 01:58 PM In reply to

    Re: Excel Cell validation formula conversion into InfoPath validation formula

    Hi Jari,

    What you'll want to do is use  validation rule on the text box. There are default patterns, and you can also create your own. You can set a pattern to be compared to an entry, and also give the user an error if they enter data that does not match the pattern.

    In this case, you could use the custom pattern: \d\d\d\d\d\d\-\d\d\d\d

    The condition would be, if FieldWithValue does not match pattern \d\d\d\d\d\d\-\d\d\d\d

    Hope that helps!
    Bre

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