Jump to content

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

Recommended Posts

Posted (edited)

I have a portal called cash out, and one of the fields is for a visa gift card number. We use a card swipe to enter the number. I used

Middle (GiftCardNum; Position (GiftCardNum; ";"; 1; 1) + 1; Position (GiftCardNum; "="; 1; 1)-2)

to capture the number. This has been working just fine, until I added a field above the portal to enter the customer ID number to create a new cash out. Now when I swipe the gift card the number will not go in to the GiftCardNum field. The field is blank and a different set of numbers are put in the field above the portal.

When gift card is swiped:

%B4793470269250179^GIFT/CARD^1104121100000001000000433000000?

;4793470269250179=1104121100000001433?

The number that I need:

%B4793470269250179^GIFT/CARD^1104121100000001000000433000000?

;[color:red]4793470269250179=1104121100000001433?

The calculation in the field:

Middle (GiftCardNum; Position (GiftCardNum; ";"; 1; 1) + 1; Position (GiftCardNum; "="; 1; 1)-2)

The number that used to go into the GiftCardNum field:

[color:red]4793470269250179

The number that now is captured and sent to the field above the portal:

;4793470269250179=1104121100000001433?

If I delete the field above the portal, every thing works just fine. I would really like to keep the field above the portal to enter the ID number in. Any suggestions.

Edited by Guest
Posted

The last paragraph of your post is the key. Sounds like the problem is not your calculation, but something to do with field behavior settings and/or perhaps you have a script involved here?

This topic is 5501 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.