2 Replies Latest reply on Aug 25, 2017 2:27 AM by laurenl73066963

    Button with JavaScript to add a template page works, but is GREYED out.

    laurenl73066963

      I've created a button that uses JavaScript to add a template page to the end of our document. The button works, but it is greyed out. I titled the button "Additional Page", but the button is solid grey with no font. I've checked and the fill color is grey and the font color is black.

       

      I'm not sure what to do!! I'm not familiar with JavaScript - found the code online, so detail is appreciated.

       

      This is the code I'm using. var a = this.getTemplate("Page 5");a.spawn();

       

      In Prepare Form Edit mode, the text shows up, but it doesn't in Preview mode.