TIN number validation - InfoPath Dev
in

InfoPath Dev

TIN number validation

Last post 12-10-2014 12:48 PM by DebiScott. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-25-2014 09:28 AM

    TIN number validation

     I have the formula's for SSN validation and formatting but my users want to use TIN numbers.

     

    This is what I have for SSN (xx-xxx-xxxx)

     

     

     

    concat(substring(translate(., "- ", ""), 1, 3), "-", substring(translate(., "- ", ""), 4, 2), "-", substring(translate(., "- ", ""), 6, 4))

    I need TIN (xx-xxxxxxx)

    Filed under:
  • 11-30-2014 09:19 PM In reply to

    Hi Debi,

    I have a formula here which you could try:

    concat(substring(translate(., "- ", ""), 1, 3), "-", substring(translate(., "- ", ""), 4, 7))

    Please let me know if this works for you.

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
  • 12-10-2014 12:48 PM In reply to

    Close- it gives me 3 digits followed by 6 digits xxx-xxxxxx instead of  2 followed by 7 xx-xxxxxxx

     

    Can you adjust? 

     

    Ok I figured it out - trial and error and reading - gotta love Google.

    TIN = concat(substring(translate(., "- ", ""), 1, 2), "-", substring(translate(., "- ", ""), 1, 7)) 

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