Does authentication by number pattern even work in InfoPath? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Does authentication by number pattern even work in InfoPath?

Last post 08-06-2021 05:12 PM by Daryl K. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-05-2021 12:41 PM

    Does authentication by number pattern even work in InfoPath?

    So I am trying to do some basic authentication for the final year or so of our InfoPath tools, and am running into two very curious issues.

    The first field needs to always be a three-letter combination, to stand for city location (i.e. TWB). I have the authentication rule set to "must match pattern" and the pattern is this: \p{L}\p{L}\p{L}
    ...which I understand is three letters.

    No matter what I enter it is always errored, even the (required) TWB or twb, it's always highlighted and won't let me save. So I delete the authentication to try the next rule.

    The next field is a much more complicated, but has a different issue.

    It has to look like this:

    First Digit = Always a Letter
    Second, Third, Fourth Digit = Always number, letter, letter
    Fifth Digit = Either
    Sixth, Seventh Digit = Either
    Eight, Ninth, Tenth Digits = Always number

    So I added authentication based on a pattern, with the pattern looking like this: \p{L}\d\p{L}\p{L}..\d\d\d\d
    ..but this one doesn't error no matter what I do. I can type in all letters and all numbers and it doesn't care - it never shows the dotted red line and allows you to save too.

    Am I doing something stupid wrong, or does tis feature just not work?
  • 08-06-2021 04:31 PM In reply to

    Re: Does authentication by number pattern even work in InfoPath?

    Validation using patterns works. See attached - save the linked file locally, right click and select design, then preview. Your first pattern was right. Your second doesn't match your description, so I went with the description.
    Hilary Stoupa

  • 08-06-2021 05:12 PM In reply to

    Re: Does authentication by number pattern even work in InfoPath?

    Thank you Hillary. Just before you responded I figured out I was doing something really stupid: had the drop-down set to "Matches pattern" instead of "Does not match pattern."

    It had been a while and I was a little 'rusty' coming back to InfoPath.

    Best regards and thanks again for responding!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.