PDF form with conditional font color/format change

New Here ,
Jan 24, 2021 Jan 24, 2021

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

100

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
community guidelines

correct answers 2 Correct Answers

Adobe Community Professional , Jan 25, 2021 Jan 25, 2021
2) use span objects for this. Samples are in the Acrobat Javascript Reference.

Likes

Translate

Translate
LEGEND , Jan 25, 2021 Jan 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. 

Likes

Translate

Translate
Adobe Community Professional ,
Jan 25, 2021 Jan 25, 2021

Copy link to clipboard

Copied

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

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
community guidelines
LEGEND ,
Jan 25, 2021 Jan 25, 2021

Copy link to clipboard

Copied

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. 

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
community guidelines
New Here ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

LATEST

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

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
community guidelines