Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

make a button invisible in pdf, but visible in html

Avatar

Former Community Member
Hello gurus!



I am designing several forms with multiple pages to render to html and pdf.



Because of the nature of the project the forms have buttons that have to be visible in html, but invisible in pdf.



I have tried to the next javascript code in initialize event on the client:



if (!window.navigator){

this.presence = "invisible";

}



But it doesnt work ok. The button is always visible.



Later i set the button as "invisible" presence in object properties tab and the next javascript code in initialize envent on the client:



if (window.navigator){

this.presence = "visible";

}



It works ok for the first time the page is displayed, if you navigate between pages and go back to the initial page, the button is invisible :-(



Please, can anyone help me? Could it be a bug? I am using v7.0



Thanks in advance.

jcpa1.
1 Reply

Avatar

Former Community Member
I have resolved it!



Set the button as visible and use the next script:



if(xfa.host.appType!=null){

this.presence = "invisible";

}