Split string from text box

D

danmarkwith

I have a form that accepts input from the magnetic swipe on your
drivers license. I am trying to split that information and set fields
to Name, DOB, Address etc, how can I do a split of the text box input
in infopath?

Sample Input:

%StateCity^Last Name$First Name$Middle Initial^Address^?
;DL #=DOB=?%

I have tried the javascript split command but I keep getting an error.
 
B

Ben Walters

Dan,
Have you considered using Managed code rather than script this should make
the split command much easier.
 
D

danmarkwith

Thanks for the post, I got it to work, I just had the references all
messed up. I just used the VB split function and got it working great.
Thanks though.
 
Top