in Acrobat DC - I would like to change the font of a strikethrough text field after that I have check the box next to it.

I work on a document in Acrobat DC and want to be able to use checkboxes as a checklist. Once the box is checked, I want the police in the text box the box is associated with having a police barred .

Is this something that needs javascript?

Textfield name is 4MedHistoryMedication1 , and there already Calibri font type.

The box is named 4MedHistoryMed_1_RXonFile

When the 4MedHistoryMed_1_RXonFile checkbox is checked, then the text in 4MedHistoryMedication1 will be Calibri ; So any content text already typed into this text field will get the police barred.

Don't forget that I'm not familiar with Javascript.

It will take JavaScript and the text field must be put in place to allow rich text formatting. You will need to set the value by using span in order to set the bar. Here is a sample script for the script of mouse upward to a check box that should help you get started:

Script mouse upwards to the box

(function () {}

Set a Boolean value that indicates whether to set the property for each span made out

which depends on the State of this check box

var bStrikethrough = event.target.value! == 'Off '.

Get a reference to the text field

var f = getField ("4MedHistoryMedication1");

Get the value of the text spans tabular field that represents the rich text value

var aRV_spans = f.richValue;

Set the property for each span made out

for (var i = 0; i)< arv_spans.length;="" i="" +="1)">

aRV_spans [i] .strikethrough = bStrikethrough;

}

Update the value of the text field

f.richValue = aRV_spans;

})();

More info is Acrobat JavaScript reference.

Tags: Acrobat

Similar Questions

Maybe you are looking for