This project has moved. For the latest updates, please go here.


// Get the hyperlink field
var hyperlinkField = SPUtility.GetSPField('Hyperlink Field');

// Set the field to link (shamelessly) to SPUtility.js on codeplex
hyperlinkField.SetValue('', 'SPUtility.js');

// Gets the value of the hyperlink field as an array
var values = hyperlinkField.GetValue();
// values[0] = ''
// values[1] = 'SPUtility.js'

// Make the hyperlink field read only, displays as a clickable hyperlink
// also there is the ability to display the text only (no hyperlink)
// will display as ", SPUtility.js"
hyperlinkField.MakeReadOnly( { TextOnly: true } );

// Hide the field

Last edited Feb 6, 2011 at 9:29 PM by KitMenke, version 1