Add a hyperlink in a SharePoint Survey

If you want to add a hyperlinks to a question with choices in SharePoint survey, you can use jquery. Edit the page add a Script Editor Webpart.

<script .1.4.min.js" type="text/javascript" >

$(document).ready( function() {
var myspan1 = $("span[title*='Big (17 inch)']");
myspan1.append('&nbsp;&nbsp;<a target="_blank" style="vertical-align:middle;color:#0072c6" href="http://www.dell.com/be/bedrijven/p/precision-m7710-workstation/pd?oc=xctop7710emea&ref=PD_OC"><b>%5BShow%5D</b></a>&#x27;);

var myspan2 = $("span[title*='Small (13 inch)']");
myspan2.append('&nbsp;&nbsp;<a target="_blank" style="vertical-align:middle;color:#0072c6" href="http://www.dell.com/be/bedrijven/p/latitude-13-7370-laptop/pd?oc=n002l737013emea&model_id=latitude-13-7370-laptop"><b>%5BShow%5D</b></a>&#x27;);
});
</script>

Advertisements
This entry was posted in SharePoint 2010, SharePoint 2013. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s