mrackley / StratusForms

Lightweight InfoPath alternative for SharePoint 2007,2010,2013,2016,2019 and Office 365
82 stars 36 forks source link

Timesheet example #46

Open zeddyzorander opened 5 years ago

zeddyzorander commented 5 years ago

So i am using the Timesheet example for initial testing (SP2016). i changed the 'formID' to 'ID' and added a content editor to the new and edit forms for my list. i can add new items and open existing items just fine, all the correct data loads into the HTML form. However, the child list "Time" is not working. i get a error message when saving that says "0x810200014 one or more field types are not installed properly". I have tried deleting the columns and re-adding them as per the ReadMe but it won't work, and i can't seem to figure it out.

Also, i noticed that on the Timesheet SharePoint form the Employee field says [Object Object], although it seems to be saving correctly.

Edit: using stratus forms 1.5 and data spservices 1.4

plbowers commented 5 years ago

This error usually means that you have named the field in your form (ListFieldName) something that does not match up exactly to the internal column name in SharePoint.

If you create a field named "Two Words" the internal name will be "Two_x0020_Words" (spaces are replaced with x0020). If you subsequently change the name of a field the internal name NEVER changes.

One way to find out the internal name of your field is to go to List Settings and hover over the field name in question and look at the resulting URL down close to your status bar. Towards the end of the URL it will say something like "...&Field=Two_x0020_Words" and you will thus know that the internal field name is Two_x0020_Words. Every once in a while the true internal field name is actually some truncated version of this in very long field names, but that's unusual - in that case you have to look it up using some API call to list the fields - it's a bit of a pain, though...

Anyway, the point is to check each field name very carefully and make sure it is exactly like the internal field name in Sharepoint - exactly as in same case as well...

Good luck!

barichards commented 4 years ago

Thank you so much for this info... very new to Sharepoint and was going in circles. This was it. Had renamed a column and could not figure the problem out.