in

InfoPath Dev

Pattern Matching Custom Pattern to check special chars

Last post 06-22-2008 04:07 PM by arduk. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-19-2008 05:03 AM

    • arduk
    • Not Ranked
    • Joined on 11-27-2007
    • Posts 5

    Pattern Matching Custom Pattern to check special chars

    Can anyone help me with the custom pattern that I need to enter in Infopath
    2007 to ensure that users don't enter any characters that Sharepoint would
    see as invalid characters in a file name.

    I have a text field in infopath that I am using to rename a file stored in a
    sharepoint document library. I would like to ensure that users don't enter
    characters that Moss2007 would see as invalid. Basically the characters I
    don't want them to enter are below:

    " # % & * : < > ? \ / { | } ~

    I realise that this is probably very simple, however I can't find any
    documentation on this, and normal regular expressions don't seem to work.

    Thanks in advance for any assistance!

    Can anyone give me the pattern that I should be entering to check if they
    have entered any of these characters (this will need to be done without using
    code).

    I am using Infopath 2007

    Filed under: ,
  • 06-20-2008 09:34 PM In reply to

    Re: Pattern Matching Custom Pattern to check special chars

    I do not think you could probably do it in a validation on the field it self with a pattern. I would trigger conditional rules for each on the field or on another button.

    Each would be a contains function and check for each special character or maybe one with an OR statement.

    That I think is how you would have to do this.

    Not super elequent but gets it done.

  • 06-22-2008 04:07 PM In reply to

    • arduk
    • Not Ranked
    • Joined on 11-27-2007
    • Posts 5

    Re: Pattern Matching Custom Pattern to check special chars

    Hi Clay Fox,

    Thanks very much for getting back to me!

    That was the only way I could get it to work as well - I just thought that using pattern matching would have been a bit nicer, but apparently not??

    Thanks again - I really appreciate you taking the time to help me out!

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