Change background color to check box based on information in text box

New Here ,
Sep 07, 2022 Sep 07, 2022

Copy link to clipboard

Copied

I am new to Java and need a formula that will turn a check box yellow if a certain text box has a number 0 or Higher. All assistance is accepted! 

 

TOPICS
JavaScript

Views

50

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
Adobe Employee ,
Sep 07, 2022 Sep 07, 2022

Copy link to clipboard

Copied

Hi @Lamesia25833204tuuk 

Hope you are doing well and thanks for reaching out.

The workflow you are trying to achieve is might be possible using JavaScript. For more information please check the help pages listed below:
https://acrobatusers.com/tutorials/javascript_console/
https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

Hope it will help

Regards
Amal

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 ,
Sep 07, 2022 Sep 07, 2022

Copy link to clipboard

Copied

Looking more for a formula

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
Community Expert ,
Sep 11, 2022 Sep 11, 2022

Copy link to clipboard

Copied

LATEST

You may be able to achieve that in different ways with Acrobat JavaScript.

 

In the example below, I am using a custom keystroke event script executed from the textfield.

 

if (event.willCommit && (event.value >= 0)) {

this.getField("Check Box").fillColor = color.yellow;

} else {

this.getField("Check Box").fillColor = color.transparent;

}

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