You create a custom form or are using a SharePoint list form to collect feedback and want to advertise the link to the form using a “button” on a SharePoint page.
- Add an HTML Form Webpart to the page
- Click on “Source Editor”
- Add any html and text you want
- Add the submit button using this code:
Intranet Development Notes – Kuali Research Question Custom Form
You’ve created an intranet page that searches a specific list. You have created a custom display template where an end user clicks on the title to see more details. The default “Close” button (<SharePoint:GoBackButton runat=”server: ControlMode=”Display” ID=”gobackbutton2″/>), if clicked, returns the user to the entire list. You would prefer the user be returned to the intranet search page, not the list.
To do this…
- Open the display template in Notepad++ or SharePoint Designer
- Delete the default SharePoint close button and add you own with html code setting the location.href property to the search page.
For example; <input type=”button” value=”close” onclick=”location.href=’http://www.yoursitenamehere.com'”/>
Your company brand uses a particular paid font(s) for all communications and wants the SharePoint branded intranet use those fonts as well. To do this, you need to create a font-face declaration…
- Upload font files to your SharePoint Site Style Library (create a new folder named “font” if needed).
- Open the css file that comes with your font files (created by the font-face generator).
- Rearrange the order of the font declaration so it will work in Chrome to the following order:
- Copy the font declaration into the top of your main stylesheet and adjust the url path so it points to the fonts you’ve just added.
Reference: Avtex Blog
Sometimes people want a button for users to click on to print a SharePoint webpage. To do this, you need to add the following code to the page using a Content Editor Webpart:
<input onclick=”window.print();” type=”button” value=”Print this page”/>
Reference: MSDN Dev Center
Problem: Want to add styling to a SharePoint page in a team site.
Solution: Add an HTML Form webpart and add the HTML, or add a Content Editor webpart and add HTML. Add a Script Editor webpart that holds the styling.
Problem: You add a webpart to a SharePoint Page of a list and you do not want to see the list column titles.
Solution: Add a script editor webpart to the page with the following css styling:
I’ve been learning SharePoint the past several years while developing a company intranet. Almost everything I’ve learned about how to use SharePoint I’ve found on the internet. Without other bloggers I would be no where. Many times through the process I’ve stated how thankful I am that others share their knowledge online. Now with the successful launch of the company internet its time for me to pay it forward and share what I’ve learned along the way… as well as what I continue to learn every day.