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

Text hint in fillable form

New Here ,
Oct 07, 2020 Oct 07, 2020

Hi. I've got a problem. I'm looking for a way to make a two different font styles in one box. I managed to make a fillable form that has a default text like:

[  company name ]

when the user writes down his company's name the text disappears, or when he clears his data, the default text is back. That works fine

What I try to do is to make a default text in italic style, while the user written text would be in bold style.

Is it possible to achieve through some Java script? To make two different font styles in one box?

Thanks in advance 😉 

TOPICS
Acrobat SDK and JavaScript
256
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 ,
Oct 08, 2020 Oct 08, 2020
LATEST

Yes, but it's quite complicated, since the default value property of a field (even one with Rich Text Formatting) is just pure text, without any formatting properties. You can do it by using a calculation script to set the field's (rich) value when it is cleared.

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