<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SPUtility Discussions Rss Feed</title><link>http://sputility.codeplex.com/Thread/List.aspx</link><description>SPUtility Discussions Rss Description</description><item><title>New Post: Error: Unable to get value of the property 'Hide': object is null or undefined</title><link>http://sputility.codeplex.com/discussions/246414</link><description>&lt;div style="line-height: normal;"&gt;Great, I'm glad you were able to get it working!&lt;br /&gt;
&lt;br /&gt;
Right now, it only works with out of the box forms.... not customized forms. &lt;br /&gt;
&lt;br /&gt;
I'm working on the jQuery version of SPUtility right now... maybe once I have time I'll look at adding support for custom forms as well. :)&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Mon, 29 Apr 2013 18:01:15 GMT</pubDate><guid isPermaLink="false">New Post: Error: Unable to get value of the property 'Hide': object is null or undefined 20130429060115P</guid></item><item><title>New Post: Error: Unable to get value of the property 'Hide': object is null or undefined</title><link>http://sputility.codeplex.com/discussions/246414</link><description>&lt;div style="line-height: normal;"&gt;Firefox messages I get when running this on a custom form:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; TypeError: SPUtility.GetSPField(...) is null
      var StatusValue = SPUtility.GetSPField('Division').GetValue();
&lt;/code&gt;&lt;/pre&gt;

and&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; TypeError: $(...) is null
      $(&amp;quot;link[rel='stylesheet']&amp;quot;).each(function()&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>PointerBrother</author><pubDate>Mon, 29 Apr 2013 15:21:57 GMT</pubDate><guid isPermaLink="false">New Post: Error: Unable to get value of the property 'Hide': object is null or undefined 20130429032157P</guid></item><item><title>New Post: Error: Unable to get value of the property 'Hide': object is null or undefined</title><link>http://sputility.codeplex.com/discussions/246414</link><description>&lt;div style="line-height: normal;"&gt;Kit - thanks for the hints - however adding that to the screen did not work.  I moved the same code to a default edit form (not my custom one modified in SPD) and I couldn't get the alert to fire.&lt;br /&gt;
&lt;br /&gt;
I read through some of your other documentation on getting fields to pop, and those started working - so I went with those.  I've added the PreSaveAction to it - so thanks for the nice toolset.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;script src=&amp;quot;/sites/DEV/SOXTesting3/SiteAssets/prototype.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script src=&amp;quot;/sites/DEV/SOXTesting3/SiteAssets/SPUtility.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;

 // Get the YesNoField
 var YesNoField = SPUtility.GetSPField('Evaluation Complete');
 var YesNoValue = YesNoField.GetValue();

 // Invoking the SharePoint function to validate before saving
 function PreSaveAction(){
    if(confirm(&amp;quot;If you are ready to submit this form, click OK; otherwise click cancel to exit without completing.&amp;quot;))      {
        alert(&amp;quot;Thank you for submitting this form&amp;quot;);
        YesNoField.SetValue(true)
        return true;
        }
    else {
 //     alert(&amp;quot;This form is not complete, click OK to continue&amp;quot;);
        YesNoField.SetValue(false)
        return true;
    }
 }
 &amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

Does this solution work on custom forms?    I can only get this script to work on OOTB forms - nothing else.&lt;br /&gt;
&lt;/div&gt;</description><author>PointerBrother</author><pubDate>Mon, 29 Apr 2013 14:37:00 GMT</pubDate><guid isPermaLink="false">New Post: Error: Unable to get value of the property 'Hide': object is null or undefined 20130429023700P</guid></item><item><title>New Post: Error: Unable to get value of the property 'Hide': object is null or undefined</title><link>http://sputility.codeplex.com/discussions/246414</link><description>&lt;div style="line-height: normal;"&gt;PointerBrother,&lt;br /&gt;
This error could happen for a variety of reasons. In your case, it looks like you may be attempting to use SPUtility before your form has loaded.&lt;br /&gt;
&lt;br /&gt;
Try this out:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&amp;quot;/sites/Corp/SOX/2013/SiteAssets/prototype.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src=&amp;quot;/sites/Corp/SOX/2013/SiteAssets/SPUtility.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
function MyCustomExecuteFunction()
{
    SPUtility.Debug(true);
    var myChoiceField = SPUtility.GetSPField('Reason for Test');
    var value = myChoiceField.GetValue();
    alert(value);
}
_spBodyOnLoadFunctionNames.push(&amp;quot;MyCustomExecuteFunction&amp;quot;);
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;

Thanks,&lt;br /&gt;
Kit&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Thu, 25 Apr 2013 00:16:22 GMT</pubDate><guid isPermaLink="false">New Post: Error: Unable to get value of the property 'Hide': object is null or undefined 20130425121622A</guid></item><item><title>New Post: Error: Unable to get value of the property 'Hide': object is null or undefined</title><link>http://sputility.codeplex.com/discussions/246414</link><description>&lt;div style="line-height: normal;"&gt;I have the same issue - others must've found the simple answer and forgot to post back - I'm new to this utility - but the same issue.&lt;br /&gt;
&lt;br /&gt;
SharePoint 2010&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;List that had custom forms - I have recreated a standard EditForm.aspx which is where this script is&lt;/li&gt;
&lt;li&gt;
not finding the field&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
SCRIPT:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;script src=&amp;quot;/sites/Corp/SOX/2013/SiteAssets/prototype.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script src=&amp;quot;/sites/Corp/SOX/2013/SiteAssets/SPUtility.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
 SPUtility.Debug(true);
 var myChoiceField = SPUtility.GetSPField('Reason for Test');
 var value = myChoiceField.GetValue();
 alert(value);
 &amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

ERROR:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; GetSPField: Unable to find a SPField named Reason for Test
&lt;/code&gt;&lt;/pre&gt;

The field &amp;quot;Reason for Test&amp;quot; is a choice field w/ 3 options.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; Display Name = Reason for Test
 Static Name = ReasonforTest&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>PointerBrother</author><pubDate>Wed, 24 Apr 2013 15:52:05 GMT</pubDate><guid isPermaLink="false">New Post: Error: Unable to get value of the property 'Hide': object is null or undefined 20130424035205P</guid></item><item><title>New Post: jQuery version in the works, need your feedback</title><link>http://sputility.codeplex.com/discussions/437271</link><description>&lt;div style="line-height: normal;"&gt;Thanks. :)&lt;br /&gt;
&lt;br /&gt;
That is sort of what I was leaning towards. I get the impression that people won't really need to upgrade... if someone is currently using SPUtility.js then it probably is working fine for them right now.&lt;br /&gt;
&lt;br /&gt;
I am figuring out if I can get access to a 2013 environment. Hopefully I can still support all three versions though! We shall see.&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Fri, 22 Mar 2013 03:25:12 GMT</pubDate><guid isPermaLink="false">New Post: jQuery version in the works, need your feedback 20130322032512A</guid></item><item><title>New Post: jQuery version in the works, need your feedback</title><link>http://sputility.codeplex.com/discussions/437271</link><description>&lt;div style="line-height: normal;"&gt;Hello, &lt;br /&gt;
&lt;br /&gt;
First of all, kudos to your great effort! &lt;br /&gt;
&lt;br /&gt;
Coming back to your question, I would suggest creating the JQuery version for SharePoint 2013 onwards and you could leave the existing version for SP2010 and SP2007&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
&lt;/div&gt;</description><author>sankumarr</author><pubDate>Thu, 21 Mar 2013 13:42:31 GMT</pubDate><guid isPermaLink="false">New Post: jQuery version in the works, need your feedback 20130321014231P</guid></item><item><title>New Post: jQuery version in the works, need your feedback</title><link>https://sputility.codeplex.com/discussions/437271</link><description>&lt;div style="line-height: normal;"&gt;I think we can all agree at this point that the majority of people would prefer to use jQuery over prototype.js.&lt;br /&gt;
&lt;br /&gt;
I wanted to let everyone know that I'm currently working on a version of SPUtility.js relies on jQuery instead.&lt;br /&gt;
&lt;br /&gt;
Right now, the API is the same but I am considering implementing a new API.. namely because it could be more consistent with jQuery standards.&lt;br /&gt;
&lt;br /&gt;
This would mean that changes would need to be made to existing code if you wanted to switch to use the jQuery version. Before I do though, I wanted to put it out there to the community:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Do you want to switch from the prototype.js version to the jQuery version?&lt;/li&gt;
&lt;li&gt;
If so, would a different API significantly impact you / prevent you from switching?&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
If you have any feedback let me know!&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Wed, 20 Mar 2013 03:07:21 GMT</pubDate><guid isPermaLink="false">New Post: jQuery version in the works, need your feedback 20130320030721A</guid></item><item><title>New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx</title><link>http://sputility.codeplex.com/discussions/316784</link><description>&lt;div style="line-height: normal;"&gt;Hey guys,&lt;br /&gt;
I have implemented a fix, tested it against SP2007, and incorporated it into my newest bug fix release (0.8.2).&lt;br /&gt;
&lt;br /&gt;
You can download 0.8.2 here: &lt;a href="http://sputility.codeplex.com/releases/view/65209" rel="nofollow"&gt;http://sputility.codeplex.com/releases/view/65209&lt;/a&gt;. Let me know if you have any more issues!&lt;br /&gt;
Thanks,&lt;br /&gt;
Kit&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Sat, 09 Mar 2013 19:45:04 GMT</pubDate><guid isPermaLink="false">New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx 20130309074504P</guid></item><item><title>New Post: Bug with SPLookupField and "saving" the form</title><link>http://sputility.codeplex.com/discussions/410614</link><description>&lt;div style="line-height: normal;"&gt;Etienne,&lt;br /&gt;
Terribly sorry it has taken so long for me to respond... Thank you for figuring this out and reporting it (with code no less!). I tweaked it a little bit (so as to not use jQuery calls) and incorporated it into the newest bugfix release 0.8.2.&lt;br /&gt;
Thanks,&lt;br /&gt;
Kit&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Sat, 09 Mar 2013 19:42:29 GMT</pubDate><guid isPermaLink="false">New Post: Bug with SPLookupField and "saving" the form 20130309074229P</guid></item><item><title>New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx</title><link>http://sputility.codeplex.com/discussions/316784</link><description>&lt;div style="line-height: normal;"&gt;Thank you for the detailed info... it helps a lot. I am able to reproduce this in my test list on DispForm.aspx.&lt;br /&gt;
&lt;br /&gt;
I'll take a look and let you know what I find out.&lt;br /&gt;
&lt;/div&gt;</description><author>KitMenke</author><pubDate>Sat, 09 Mar 2013 18:06:44 GMT</pubDate><guid isPermaLink="false">New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx 20130309060644P</guid></item><item><title>New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx</title><link>http://sputility.codeplex.com/discussions/316784</link><description>&lt;div style="line-height: normal;"&gt;I am having the same problem.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Yes, including Prototype.js before SPUtility.js... just like the documentation... &lt;/li&gt;
&lt;li&gt;I've tried both methods _spBodyOnLoadFunctionNames and Event.observe.  Both methods work for EditForm.aspx, but fail for DispForm.aspx.&lt;/li&gt;
&lt;li&gt;
Code Snip:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var fldCurr;
fldCurr = SPUtility.GetSPField('Skill Level');
if (fldCurr == null) alert(&amp;quot;Skill Level is null&amp;quot;);
else fldCurr.Hide();
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;
Pops alert &amp;quot;Skill Level is null&amp;quot; on DispForm.aspx and works fine on EditForm.aspx.&lt;br /&gt;
&lt;br /&gt;
Full sample:&lt;br /&gt;
~~~~~~~~~~&lt;br /&gt;
function MyCustomExecuteFunction()&lt;br /&gt;
{&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;try {
    // TODO: Put your code here...
    //SPUtility.GetSPField('Name').SetValue('Hello world!');
    var fldCurr;
    //fldCurr = SPUtility.GetSPField('Skill Level');
    //if (fldCurr == null) alert(&amp;quot;Skill Level is null&amp;quot;);
    //else fldCurr.Hide();

    fldCurr = SPUtility.GetSPField('Specific Skills').Hide();
    //if (fldCurr == null) alert(&amp;quot;Specific Skills is null&amp;quot;);
    //else fldCurr.Hide();

    SPUtility.GetSPField('Current SOW').Hide();
    SPUtility.GetSPField('Current Rate').Hide();
    SPUtility.GetSPField('New SOW Rate').Hide();
    SPUtility.GetSPField('New Discounted Rate').Hide();
    SPUtility.GetSPField('18 Month Date').Hide();
    SPUtility.GetSPField('Mandatory Roll Off Date').Hide();
    SPUtility.GetSPField('Potential Candidates').Hide();
} catch (ex) {
    alert(ex.toString());
}&lt;/code&gt;&lt;/pre&gt;

}&lt;br /&gt;
&lt;br /&gt;
_spBodyOnLoadFunctionNames.push(&amp;quot;MyCustomExecuteFunction&amp;quot;)&lt;br /&gt;
~~~~~~~~~~~~&lt;br /&gt;
&lt;br /&gt;
I believe SharePoint is 2007, WSS 3.0.&lt;br /&gt;
SPUtility.js	Version: 0.8.1&lt;br /&gt;
Prototype.js  Version: '1.7.1',&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>mwoollen</author><pubDate>Fri, 08 Mar 2013 13:25:08 GMT</pubDate><guid isPermaLink="false">New Post: SPUtility.GetSPField returns NULL when using in DispForm.aspx 20130308012508P</guid></item><item><title>New Post: SetValue not working on People Picker Field, for IE9.</title><link>http://sputility.codeplex.com/discussions/429266</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I have the code bellow on a newform.asp.&lt;/p&gt;
&lt;p&gt;When I run it on Google Chrome, the People picker field (named &amp;quot;solicitante&amp;quot;), receive the information on text field (named &amp;quot;teste&amp;quot;), but on Internet Explrer 9, the field is blank.&lt;/p&gt;
&lt;p&gt;function fillDefaultValues() {&lt;br&gt;
var peopleField = SPUtility.GetSPField('Solicitante');peopleField.MakeEditable();peopleField.SetValue(SPUtility.GetSPField(&amp;quot;teste&amp;quot;).GetValue());&lt;br&gt;
&lt;br&gt;
}&lt;/p&gt;
&lt;/div&gt;</description><author>a2codeplex</author><pubDate>Fri, 11 Jan 2013 11:02:07 GMT</pubDate><guid isPermaLink="false">New Post: SetValue not working on People Picker Field, for IE9. 20130111110207A</guid></item><item><title>New Post: Bug with SPLookupField and "saving" the form</title><link>http://sputility.codeplex.com/discussions/410614</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;First of all a big thank you for the people who have been involved in writing this awesome library.&lt;/p&gt;
&lt;p&gt;Came across a little bug which took me a while to get my head around and thought I would feed it back to the community.&lt;/p&gt;
&lt;p&gt;There is a problem when populating a &lt;strong&gt;SPLookupField&lt;/strong&gt; with &amp;quot;Complex&amp;quot; display in IE (lookup column with more than 20 items - autocomplete activated). This control is using a &amp;quot;Hidden&amp;quot; field that is then grabbed when sending
 the data to the server (the &amp;quot;opthid&amp;quot; attribute of the control). If not set, even if auto-populated this value will not be set unless the user actually changes the selection.&lt;/p&gt;
&lt;p&gt;Anyway, here are the changes I have made to the code in bold below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;	&lt;span style="color:green"&gt;/*
	 *	SPLookupField class
	 *	Supports single select lookup fields
	 */&lt;/span&gt;
	SPLookupField = Class.create(SPField, {
		initialize: &lt;span style="color:blue"&gt;function&lt;/span&gt; ($&lt;span style="color:blue"&gt;super&lt;/span&gt;, spParams) {
			$&lt;span style="color:blue"&gt;super&lt;/span&gt;(spParams);
			
			&lt;span style="color:blue"&gt;var&lt;/span&gt; controls = &lt;span style="color:blue"&gt;this&lt;/span&gt;.Controls.select(&lt;span style="color:#a31515"&gt;'input'&lt;/span&gt;);
			&lt;span style="color:blue"&gt;if&lt;/span&gt; (1 === controls.length) {
				&lt;span style="color:green"&gt;// autocomplete lookup&lt;/span&gt;
				&lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox = controls[0];
				
				&lt;span style="color:blue"&gt;this&lt;/span&gt;.GetValue = &lt;span style="color:blue"&gt;function&lt;/span&gt; () {
					&lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox.getValue();
				};
				
				&lt;span style="color:blue"&gt;this&lt;/span&gt;.SetValue = &lt;span style="color:blue"&gt;function&lt;/span&gt; (value) {
					&lt;span style="color:blue"&gt;var&lt;/span&gt; choices, hash;
					&lt;span style="color:blue"&gt;var&lt;/span&gt; selectedID;

&lt;strong&gt;					&lt;span style="color:green"&gt;// a list item ID was passed to the function so attempt to lookup the text value&lt;/span&gt;
					choices = &lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox.readAttribute(&lt;span style="color:#a31515"&gt;'choices'&lt;/span&gt;);
					hash = &lt;span style="color:blue"&gt;new&lt;/span&gt; Hash();

					&lt;span style="color:green"&gt;// JSLint error here but not much I can do...&lt;/span&gt;
					choices.scan(/(([^\|]|\|\|)&amp;#43;)\|(\d&amp;#43;)/, &lt;span style="color:blue"&gt;function&lt;/span&gt; (match) {
						hash.set(match[3], match[1].replace(/\|\|/g, &lt;span style="color:#a31515"&gt;'|'&lt;/span&gt;));
					});
&lt;/strong&gt;					
					&lt;span style="color:blue"&gt;if&lt;/span&gt; (Object.isNumber(value)) {
						&lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox.setValue(hash.get(value.toString()));
						
&lt;strong&gt;						&lt;span style="color:green"&gt;// If we have the ID, set the Hidden field value to be this ID&lt;/span&gt;
						selectedID = value.toString();
&lt;/strong&gt;					} &lt;span style="color:blue"&gt;else&lt;/span&gt; {
						&lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox.setValue(value);

&lt;strong&gt;						&lt;span style="color:green"&gt;// If we have the &amp;quot;value&amp;quot; find its ID in the Hashtable&lt;/span&gt;
						selectedID = hash.index(value.toString());
&lt;/strong&gt;					}
					
&lt;strong&gt;					&lt;span style="color:green"&gt;// We also need to set the associated hidden field with the correct value...&lt;/span&gt;
					opthid = &lt;span style="color:blue"&gt;this&lt;/span&gt;.Textbox.readAttribute(&lt;span style="color:#a31515"&gt;'opthid'&lt;/span&gt;);
					
					jQuery(&lt;span style="color:#a31515"&gt;'input[name=&amp;quot;'&lt;/span&gt; &amp;#43; opthid &amp;#43; &lt;span style="color:#a31515"&gt;'&amp;quot;]'&lt;/span&gt;).val(selectedID);					
&lt;/strong&gt;					
					updateReadOnlyLabel(&lt;span style="color:blue"&gt;this&lt;/span&gt;);
					&lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;this&lt;/span&gt;;
				};
				
			} &lt;span style="color:blue"&gt;else&lt;/span&gt; {
				controls = &lt;span style="color:blue"&gt;this&lt;/span&gt;.Controls.select(&lt;span style="color:#a31515"&gt;'select'&lt;/span&gt;);
				&lt;span style="color:blue"&gt;if&lt;/span&gt; (1 === controls.length) {
					&lt;span style="color:green"&gt;// regular dropdown lookup&lt;/span&gt;
					&lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown = controls[0];
					
					&lt;span style="color:blue"&gt;this&lt;/span&gt;.GetValue = &lt;span style="color:blue"&gt;function&lt;/span&gt; () {
						&lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.options[&lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.selectedIndex].text;
					};
					
					&lt;span style="color:blue"&gt;this&lt;/span&gt;.SetValue = &lt;span style="color:blue"&gt;function&lt;/span&gt; (value) {
						&lt;span style="color:blue"&gt;if&lt;/span&gt; (Object.isNumber(value)) {
							&lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.setValue(value);
						} &lt;span style="color:blue"&gt;else&lt;/span&gt; {
							&lt;span style="color:blue"&gt;var&lt;/span&gt; i, numOptions;
							&lt;span style="color:green"&gt;// need to set the dropdown based on text&lt;/span&gt;
							numOptions = &lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.options.length;
							&lt;span style="color:blue"&gt;for&lt;/span&gt; (i = 0; i &amp;lt; numOptions; i &amp;#43;= 1) {
								&lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.options[i].text === value) {
									&lt;span style="color:blue"&gt;this&lt;/span&gt;.Dropdown.selectedIndex = i;
									&lt;span style="color:blue"&gt;break&lt;/span&gt;;
								}
							}
						}
						updateReadOnlyLabel(&lt;span style="color:blue"&gt;this&lt;/span&gt;);
						&lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;this&lt;/span&gt;;
					};
				}
			}
		}
	});
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That's it, hope this helps and will make it to the main code branch!&lt;/p&gt;
&lt;p&gt;Fantastic idea and very clean code, so refreshing to work with this library :)&lt;/p&gt;
&lt;p&gt;Cheers &amp; happy coding.&lt;/p&gt;
&lt;p&gt;Etienne&lt;/p&gt;
&lt;/div&gt;</description><author>lambi_uk</author><pubDate>Thu, 20 Dec 2012 16:27:42 GMT</pubDate><guid isPermaLink="false">New Post: Bug with SPLookupField and "saving" the form 20121220042742P</guid></item><item><title>New Post: Show field if checked</title><link>http://sputility.codeplex.com/discussions/399672</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;&lt;span&gt;Thanks for responding. I entered the code as suggested and it changes my name field from readonly and doesn't hide or unhide the other fields.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I'm sure it something with my syntax...&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;
&lt;span&gt;here is my code&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span&gt;&lt;div style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;&lt;span&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;/school/prototype.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;/school/SPUtility.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;// run after the page has loaded&lt;br&gt;Event.observe(window,'load',function(){&lt;br&gt;try {&lt;br&gt;//make the name a readonly field&lt;br&gt;SPUtility.GetSPField('Name').MakeReadOnly(); &lt;/div&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;var&lt;/span&gt; fieldClasses = SPUtility.GetSPField(&lt;span style="color:#a31515"&gt;'Classes'&lt;/span&gt;);&lt;br&gt;fieldClasses.Checkboxes.get(&lt;span style="color:#a31515"&gt;&amp;quot;English&amp;quot;&lt;/span&gt;).observe(&lt;span style="color:#a31515"&gt;'click'&lt;/span&gt;, &lt;span style="color:blue"&gt;function&lt;/span&gt;(evt) { &lt;span style="color:blue"&gt;var&lt;/span&gt; englishComments = SPUtility.GetSPField(&lt;span style="color:#a31515"&gt;'English Comments'&lt;/span&gt;); &lt;span style="color:green"&gt;// this is the input element the user clicked on&lt;/span&gt; &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;this&lt;/span&gt;.checked) { englishComments.Show(); } &lt;span style="color:blue"&gt;else&lt;/span&gt; { englishComments.Hide(); } });&lt;br&gt;&lt;br&gt;fieldClasses.Checkboxes.get(&lt;span style="color:#a31515"&gt;&amp;quot;Math&amp;quot;&lt;/span&gt;).observe(&lt;span style="color:#a31515"&gt;'click'&lt;/span&gt;, &lt;span style="color:blue"&gt;function&lt;/span&gt;(evt) { &lt;span style="color:blue"&gt;var&lt;/span&gt; mathComments = SPUtility.GetSPField(&lt;span style="color:#a31515"&gt;'Math Comments'&lt;/span&gt;); &lt;span style="color:green"&gt;// this is the input element the user clicked on&lt;/span&gt; &lt;span style="color:blue"&gt;if&lt;/span&gt; (&lt;span style="color:blue"&gt;this&lt;/span&gt;.checked) { mathComments.Show(); } &lt;span style="color:blue"&gt;else&lt;/span&gt; { mathComments.Hide(); } }); } catch (ex) {&lt;/pre&gt;
&lt;div id="yui_3_7_2_1_1352078816900_85" style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;
alert(ex.toString());&lt;br&gt;
}&lt;br&gt;
});&lt;br&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div style="background-color:transparent; font-style:normal; font-family:times new roman,new york,times,serif; color:#000000; font-size:16px"&gt;
Thanks me!&lt;/div&gt;
&lt;/div&gt;</description><author>srice</author><pubDate>Mon, 05 Nov 2012 01:37:56 GMT</pubDate><guid isPermaLink="false">New Post: Show field if checked 20121105013756A</guid></item><item><title>New Post: Lookup column on NewForm.aspx</title><link>http://sputility.codeplex.com/discussions/401539</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Kit,&lt;/p&gt;
&lt;p&gt;Many thanks - you're a genius!&lt;/p&gt;
&lt;p&gt;My code works correctly now, and will certainly improve the user 'experience'.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>MarkETolley</author><pubDate>Fri, 02 Nov 2012 14:57:26 GMT</pubDate><guid isPermaLink="false">New Post: Lookup column on NewForm.aspx 20121102025726P</guid></item><item><title>New Post: Lookup column on NewForm.aspx</title><link>http://sputility.codeplex.com/discussions/401539</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;I think I figured out the issue. Lookup fields are weird because they change depending on which browser you are using.. autocomplete in IE and dropdown in other browsers.&lt;/p&gt;
&lt;p&gt;I've attached a new version of SPUtility.js here:&amp;nbsp;&lt;a href="http://sputility.codeplex.com/workitem/12"&gt;http://sputility.codeplex.com/workitem/12&lt;/a&gt;.&amp;nbsp;If you don't mind, can you test out the fix and let me know if it is working for you?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kit&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>KitMenke</author><pubDate>Fri, 02 Nov 2012 13:54:58 GMT</pubDate><guid isPermaLink="false">New Post: Lookup column on NewForm.aspx 20121102015458P</guid></item><item><title>New Post: Lookup column on NewForm.aspx</title><link>http://sputility.codeplex.com/discussions/401539</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm able to reproduce this using a large lookup field. I'll see if I can figure out what is causing the issue in SPUtility.&lt;/p&gt;&lt;/div&gt;</description><author>KitMenke</author><pubDate>Fri, 02 Nov 2012 13:04:20 GMT</pubDate><guid isPermaLink="false">New Post: Lookup column on NewForm.aspx 20121102010420P</guid></item><item><title>New Post: Lookup column on NewForm.aspx</title><link>http://sputility.codeplex.com/discussions/401539</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Kit,&lt;/p&gt;
&lt;p&gt;It's a single select with about 80 items.&lt;/p&gt;
&lt;p&gt;I've already tried the 3 forms of URL 'spacing', e.g. ' ', '+' &amp;amp; '%20', and have tried various combinations of .replace in c_ref.&lt;/p&gt;
&lt;p&gt;Something else to note: -&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;drop down the list&amp;nbsp;then the correct entry is highlighted and then, without&amp;nbsp;'touching' the list, just press OK and it saves correctly&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>MarkETolley</author><pubDate>Fri, 02 Nov 2012 09:43:45 GMT</pubDate><guid isPermaLink="false">New Post: Lookup column on NewForm.aspx 20121102094345A</guid></item><item><title>New Post: Lookup column on NewForm.aspx</title><link>http://sputility.codeplex.com/discussions/401539</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;I haven't been able to repro the issue yet. Some questions..&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is your field a single or multi-select lookup field? Are there more than 20 items in the lookup list?&lt;/li&gt;
&lt;li&gt;Can you give me an example of the URL? Specifically I'm interested in what the query parameters are. For example: "NewForm.aspx?c_ref=aa+bb+cc" versus "NewForm.aspx?c_ref=aa bb cc" or even&amp;nbsp;"NewForm.aspx?c_ref=aa%20bb%20cc"&lt;/li&gt;
&lt;li&gt;Have you tried replacing all instances of "+" with " " (space) in c_ref?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hopefully we can get this working for you.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kit&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kitmenke</author><pubDate>Thu, 01 Nov 2012 23:43:33 GMT</pubDate><guid isPermaLink="false">New Post: Lookup column on NewForm.aspx 20121101114333P</guid></item></channel></rss>