Skip to main content
Participant
July 14, 2021
Answered

How to change the checkbox style of all checkboxes at once in a pdf

  • July 14, 2021
  • 1 reply
  • 4614 views

Hi there,

 

I converted a word document with checkboxes to pdf but the checkbox style it created them in is "Square". Is there any way to change all of these at once to the "Check" style without having to change them all painfully one by one?

 

Thanks for your help.

Correct answer Nesa Nurani

Run this from javascript console or put it in a button as mouse Up event:

for (var i=0; i<this.numFields; i++){
var cBox = this.getNthFieldName(i);
if(this.getField(cBox).type == "checkbox"){
this.getField(cBox).style = style.ch;}}

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
July 14, 2021

Run this from javascript console or put it in a button as mouse Up event:

for (var i=0; i<this.numFields; i++){
var cBox = this.getNthFieldName(i);
if(this.getField(cBox).type == "checkbox"){
this.getField(cBox).style = style.ch;}}

Liam1587Author
Participant
July 14, 2021

That worked, thanks for that!