Skip to main content
Participating Frequently
October 16, 2022
Answered

how to temporarily hide all checkbxes on a pdf document

  • October 16, 2022
  • 1 reply
  • 429 views

hi

i have a 50 page document and i just want to temporarily hide all the checkboxes on it(because i am unable to see the text beneath it)...how can i do it..and maybe make it come back later(i dont want to create another 50 page form field edit)

 thank you

This topic has been closed for replies.
Correct answer Nesa Nurani

You can run this from a button or console, it will hide/show all checkboxes:

for ( var i = 0; i < this.numFields; i++){
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
f.display = (f.type == "checkbox" && f.display == display.visible) ? display.hidden : display.visible;}

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
October 16, 2022

You can run this from a button or console, it will hide/show all checkboxes:

for ( var i = 0; i < this.numFields; i++){
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
f.display = (f.type == "checkbox" && f.display == display.visible) ? display.hidden : display.visible;}

Participating Frequently
October 16, 2022

thank you,