Skip to main content
Participant
October 25, 2019
Answered

Adobe Editor - Automatically Add Comma after Text Field, no matter what length the text field is

  • October 25, 2019
  • 2 replies
  • 5835 views

I am very new to Adobe Editor. I am preparing several letters that I would send out for my business, and I was hoping to find a way to automatically add a comma to specific text fields. Examples of this would include addresses and greetings. I of course could manually type them out, but for sake of time it would be great if Adobe could automatically do this for me. I originally added the comma as part of the PDF, but that doesn't work as well because the comma doesn't always match the length of the address or the recipient of the letter's name. Is there a way for me to have Adobe automatically add this comma?

    Correct answer try67

    You can use this code as the field's custom Format script:

    if (event.value) event.value+=",";

    2 replies

    try67
    Community Expert
    Community Expert
    October 25, 2019

    Are you talking about an actual text form field, or are you referring to static contents that you're adding to the PDF?

    It's possible with the former, not the latter.

    Participant
    October 25, 2019

    I am talking about the form field. Essentially, it would read as follows:

    "Dear [Name], "

     

    The [Name] is a form-field, and the comma after is what I would like to be automatically added.

    I can't put the comma in the PDF text itself, as the name can vary in length.

    Thank you!

     

    try67
    Community Expert
    try67Community ExpertCorrect answer
    Community Expert
    October 25, 2019

    You can use this code as the field's custom Format script:

    if (event.value) event.value+=",";

    99jon
    Genius
    October 25, 2019

    Maybe you need MS Word with grammer and spelling suggestions? Are you using Acrobat or another Adobe application?

    Participant
    October 25, 2019

    I'm using Adobe Acrobat 2017.

    99jon
    Genius
    October 25, 2019

    Getting you to the right community. Maybe volunteers here will be able to help you.