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

Is it possible to indent the first line of a multi-line form field?

New Here ,
Mar 06, 2016 Mar 06, 2016

I have a form that contains a multi line form field.  What I'd like to accomplish is to make the first line begin indented, and the rest of the lines be full width.  Is this possible without creating a separate field for the first line?

TOPICS
Acrobat SDK and JavaScript , Windows
662
Translate
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, 2016 Mar 07, 2016
LATEST

Yes, but it's a bit tricky.

Apply this code as the field's custom Format script to achieve it:

if (event.value) event.value = "\t" + event.value.replace(/^\s+/, "");

Translate
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