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
Post a Comment