Skip to main content
Participating Frequently
January 25, 2021
Answered

PDF form with conditional font color/format change

  • January 25, 2021
  • 2 replies
  • 924 views

Hello, I'm trying to make an interactive/fillable PDF form. 

I'm new to this, so I might need some walking through..

 

1) If the sentence starts with Perfect. (in this case, the only word in the field will be Perfect.)

for the font color to change to blue, (normally red as default).

> Will the font change back to red if Perfect. is deleted?Because I only need it to be blue in this one case.

 

2) If the sentence starts with Suggested Answer : 

to have those first two words and the colon to be italicized, but not the rest of the text.

 

I was told that these require some complicated solutions. But I'd appreciate any help I can get!

Thank you.

This topic has been closed for replies.
Correct answer Test Screen Name

Yes, this is pretty complicated. But detailed study of span objects will help you if you are already a programmer. If not, it may be too ambitious a project. 

2 replies

Test Screen NameCorrect answer
Legend
January 25, 2021

Yes, this is pretty complicated. But detailed study of span objects will help you if you are already a programmer. If not, it may be too ambitious a project. 

drewyoonAuthor
Participating Frequently
January 29, 2021

Ah I see, I'll have to look for another way. thank you! 

Bernd Alheit
Community Expert
Community Expert
January 25, 2021

2) use span objects for this. Samples are in the Acrobat Javascript Reference.