alfette Posted November 3, 2018 Share Posted November 3, 2018 Hello, I'm trying to add a print button on CMS pages from the back office but it does not work. <button type="button" id="myButton" class="btn btn-primary" onclick="window.print()">Print this page</button> The problem appear when I use onclick="window.print()" It's return an error "The content field is invalid." if I use this line: <button type="button" id="myButton" class="btn btn-primary">Print this page</button> I can save the page and the button appear. How to add the function print? Thank you Link to comment Share on other sites More sharing options...
alfette Posted November 5, 2018 Author Share Posted November 5, 2018 No one have a solution? Link to comment Share on other sites More sharing options...
JBW Posted November 6, 2018 Share Posted November 6, 2018 I think Java Script is not allowed in CMS pages by default in PrestaShop. You would have to override the validation or add it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now