Jump to content

This topic is 4680 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm making this difficult i'm sure...

All I want to do is take this:

Name: Jonathan Smith

Address: PO BOX 1

City: Dallas

State: Texas

Zip: 12345

and paste it into a field.

Then I want fields: Name, Address, City, State, Zip to just in the value.

Any adivce? Thanks...

Posted (edited)

Hi JT,

If you have a global text field called pasteString, you can add an auto-enter calculation (leave 'do not replace' checked) with (for name):

Trim ( GetValue ( Substitute ( GetValue ( pasteString ; 1 ) ; ":" ; ¶ ) ; 2 ) )

For address, change the first 1 to a 2 but leave the second 2 as is.

Keep in mind that this depends upon all the lines being there. If City might be missing (the entire line) then you will need to instead look for the 'label' name and parse right side of each label individually.

Edited by LaRetta

This topic is 4680 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.