javascript - Adobe Acrobat toggle button - show/hide field -


what want button in acrobat hide field if it's visible , show if it's hidden, alternatively.

i know there way 1 or either on mouseup, want both using same button.

this got far:

var strikethrough = this.getfield("text_strikethrough"); if(strikethrough.display = display.hidden){strikethrough.display = display.visible } else {strikethrough.display = display.hidden} 

unfortunately, doesn't seem working.

any appreciated.

try following:

var strikethrough = this.getfield("text_strikethrough"); if(strikethrough.display == display.hidden){strikethrough.display = display.visible } else {strikethrough.display = display.hidden} 

i used '==' instead of '=' in "if condition".


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -