Closed
Description
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version: [3.15.0]
Expected / Desired Behavior
The form should be rendered successfully.
Observed Behavior
The form dispears and errors show in the console.
Steps to Reproduce
- Create an extension using DynamicForm
- Add OOTB "End Date" or any date field named starting with a number (for example, "1Date") to a content type
- Add the content type to a document library
- Create a document out of the content type
- Attach the custom form to the list content type
- Add a date value to the new document from Details Pane
- Open custom form
- Issue: errors show up in console, the form shows and disappears.
Investigation
The reason could be the line to get the date value from the list item.
The key of the date field value in list item is not the same as field internal name. For example, for OOTB date field "End Date", internal name is "EndDate", but in list item, its saved as "OData__EndDate". Same to other fields which internal name starts with underscore "". SharePoint will prefix it with "OData_" to make DynamicForm unable to get the value.