• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

How to Format a credit card field by card type?

New Here ,
Oct 31, 2016 Oct 31, 2016

Copy link to clipboard

Copied

How do a format a text field in a PDF form to use the correct spacing depending by card type?


For example, American Express cards (14 characters, starts with a 3) should have 4,3,3,5 spacing and formatted like so:

3xxx xxx xxx xxxxx

Visa (Starts with a 4), MasterCard (Starts with a 5), and Discover (Starts with a 6) all have 15 characters with 4,4,4,4 spacing and be formatted like so:

4xxx xxxx xxxx xxxx - Visa

5xxx xxxx xxxx xxxx - MasterCard

6xxx xxxx xxxx xxxx - Discover

Is there a text field script that can do this type of task?

I am currently using Adobe X Pro

Thank you in advance.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

485

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 19, 2022 Apr 19, 2022

Copy link to clipboard

Copied

is this not possible?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2022 Apr 19, 2022

Copy link to clipboard

Copied

Yes, it's possible, but will require a custom format script to be written.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 07, 2024 Mar 07, 2024

Copy link to clipboard

Copied

It a common question, so needs an actual responce.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2024 Mar 07, 2024

Copy link to clipboard

Copied

LATEST

In other words, you want someone else to write the script for you, right?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines