Highlighted

Text hint in fillable form

New Here ,
Oct 07, 2020

Copy link to clipboard

Copied

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, Create PDFs, Edit and convert PDFs, How to, PDF forms

Views

21

Likes

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

Text hint in fillable form

New Here ,
Oct 07, 2020

Copy link to clipboard

Copied

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, Create PDFs, Edit and convert PDFs, How to, PDF forms

Views

22

Likes

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
Oct 07, 2020 0
try67 LATEST
Most Valuable Participant ,
Oct 08, 2020

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Oct 08, 2020 0