How to omit text from PDF file when clicking JS-powered print button?

I have created a form-based PDF with a toggle to select the desired logo. Above the toggle is the text “Click to choose logo”. At the bottom of the page is a button that runs a JS code upon click to print the file. When it is printed, the Click to choose logo text is obviously part of the file. Is there any way I can remove this from the printed version, so the printed file only has the chosen logo, not the text?

I have looked through the JS code and tried to find options in the text/page settings, but to no avail. Any input is welcome.