Howto: Default value for datetime field in plone5 without using plone.directives

You can also use <defaultFactory>dotted.path.to.factory</defaultFactory> in an XML supermodel, as long as the factory provides the plone.supermodel.interfaces.IDefaultFactory marker interface (for security to make sure that TTW schema editors can't reference arbitrary Python functions).

1 Like