This project has moved and is read-only. For the latest updates, please go here.

I can not display the Hello world in the title (see sample source)

Jan 21, 2015 at 5:27 AM
I wrote the following code, but "Hello World" in the title did not appear.
<script src="/sites/testing/SiteAssets/jquery-1.11.2.min.js"></script>
<script src="/sites/testing/SiteAssets/sputility.min.js"></script>
// wait for the window to load
$(window).load(function () {
   // EXAMPLE: Set the value of the Title field to Hello world!
   SPUtility.GetSPField('Title').SetValue('Hello world!');
I was tested on a content editor and script editor, both "Hello World" did not appear.
I have also confirmed the following problem, but did not resolve.
Office 365 P1 - I can't even get the sample working
Office 365 custom list only firing in when form in edit mode
Jan 21, 2015 at 6:16 AM
I was fixed source as follows.
Then "Hello World" has been displayed in the title.

I replied to be the future reference
Thank you
<script type="text/javascript" src="/sites/testing/SiteAssets/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/sites/testing/SiteAssets/sputility.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
SPUtility.GetSPFieldByInternalName('Title').SetValue('Hello world!');
Marked as answer by saori0127 on 1/20/2015 at 10:17 PM
Jan 21, 2015 at 11:20 PM
Thank you for posting the solution! I will take a look at this and update the examples.
Jan 25, 2015 at 6:52 PM
I tested this in Office 365 and found that both $(window).load and $(document).ready worked for me.

Since you got it working with $(document).ready, that should work fine!