Get Extension from Phone Number - InfoPath Dev
in

InfoPath Dev

Get Extension from Phone Number

Last post 08-19-2016 12:54 AM by claire. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-18-2016 07:38 AM

    Get Extension from Phone Number

    Good afternoon,

     I wonder if anyone could please help.  I have an InfoPath list form and a text box which using the User Profile Service returns the staff's full phone number.  I have used  Value[Name = "WorkPhone"] which is returning the right result, but what I'd like to do is only return the last four digits which would be the extension number.  Would someone be able to help with the formula.

     

    Many thanks 

  • 08-18-2016 01:14 PM In reply to

    Re: Get Extension from Phone Number

    Something like this: substring(Value[Name = "WorkPhone"], string-length(Value[Name = "WorkPhone"]) - 3)
    Hilary Stoupa

  • 08-19-2016 12:54 AM In reply to

    Re: Get Extension from Phone Number

     Thanks Hilary, this works fine, I was missing the string-length.

     

     

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