3

I have created links to document templates using the source code as opposed to URL (URL links do not open read only and not in the relevant library) - I used the guide here

And have created a button for it.

The button works fine! BUT, I want to make it and the font bigger, I have tried a few different variations of font-size= XXpt but nothing seems to work.

This is the script, using script editor (the company links have been taken out.

<input type=button onClick="CoreInvoke(&#39;createNewDocumentWithRedirect2&#39;,event,&#39;LINK.pptx&#39;, &#39;ADDRESS&#39;, &#39;SharePoint.OpenDocuments&#39;, false, &#39;https://ADDRESS/_layouts/15/CreateNewDocument.aspx?id=https://LINK;, true, 1)" value='Want to add a Safety Moment? Drag&Drop it onto the library under if you have one ready, or click here for the template. 'style="background: url( https://image.png )">
3

Just add another attribute for your button i.e. style attribute. You can put any style you like within it. In your case you can go with following code:

<input type="button" style="font-size: 24px; font-family: Arial, Helvetica, sans-serif;" onClick="CoreInvoke(&#39;createNewDocumentWithRedirect2&#39;,event,&#39;LINK.pptx&#39;, &#39;ADDRESS&#39;, &#39;SharePoint.OpenDocuments&#39;, false, &#39;https://ADDRESS/_layouts/15/CreateNewDocument.aspx?id=https://LINK;, true, 1)" value='Want to add a Safety Moment? Drag&Drop it onto the library under if you have one ready, or click here for the template. 'style="background: url( https://image.png )">
  • I have no idea how that didn't work before but copying and pasting now works a treat! Thank you :) – Tricia Schooling Jul 18 '17 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.