Related: Retrieving supermodel as XML for an arbitrary DX type?
We generate simplified add-forms for DX content-types and create content instances from your custom add-forms inside our own browser views.
In case of e.g. Event
you have start
and end
values (submitted as ISO8601) strings to the backend. The backend now needs a field specific converter that takes the textual representation of the fields and converts it into datetime
in this case or into a RichTextValue
instance for rich text fields.
Is there some generic converter taking the value of a form fields, the portal_type of the related content item and the field name converting it automatically into the related type based on the model of the content type or its supermodel ?