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

Uncaught Error creating field named Title: Unable to parse SPField type.

Jan 2, 2015 at 3:50 PM
Edited Jan 2, 2015 at 3:54 PM
Hello Kit.

I am using Office 365 SharePoint.

I have followed the instructions but have this issue
1) Firstly I had the issue discussed in the other posts about 'Unable to get an SPField named'. - I went past this by changing the line #329 and 330 from
fieldElements = $('') 
fieldElements = $('')
2) After getting past the the above issue, I have stumbled across another issue in line 259 as the type is null. This is because of line 127 as the DOM has no such nodeType (8 i.e. for comment). The 'element' DOM is as follows
<td width="400px" valign="top" class="ms-formbody">
<span dir="none">
<input name="ctl00$ctl42$g_ca35bf3f_9729_4c8f_a533_3b6590ee5fc8$ff11$ctl00$ctl00$TextField" type="text" maxlength="255" id="ctl00_ctl42_g_ca35bf3f_9729_4c8f_a533_3b6590ee5fc8_ff11_ctl00_ctl00_TextField" title="Title Required Field" class="ms-long ms-spellcheck-true"><br>
Apologies if this I am missing something but have you come across this issue?

Thank you
Jan 2, 2015 at 4:50 PM
Thank you very much for the additional information... it is extremely helpful. I will try to help. By any chance have you customized the form using SharePoint Designer? If so, it removes the comments which SPUtility depends on to read the field's type.
Marked as answer by varunmanohar on 1/3/2015 at 2:10 PM
Jan 3, 2015 at 9:10 PM
You got me! I created the new form using SharePoint designer. Sorry should have remembered this myself. Thank you.