When printing the form, the sections that I want to be invisible are still showing up. I know that the buttons allow you to select to be "visible-but don't print", which is what I want just a section of text to do. I've tried putting the text in a subform and typing in "this.presence = "invisible"; in the preprint javascipt box, but this still did not stop the section of text from printing.
I think what you are doing should work!! i've done the same coding and also this.presence="hidden"; on prePrint for subform and it all works for me. My best guess is that you are having the file as static pdf or having another error(check the console).