Hello everyone,
I’m working on a project where I need to pre-fill a form field using a data provider. and we’re using the CDM, I’ve followed the documentation for implementing the data provider.
However, it doesn’t seem to work correctly with the CDM models.
Is there a specific way I should follow to implement the data provider with CDM models?
Or is there a better way to implement that with CDM?
Thanks.
Hi, in case your pre-filled values are not dynamic, you could try using the initial value feature which is supported for CDMs since Client 14.6.x.
Otherwise you will need to create your own version of the EmptyDocumentDataProvider.
However, please note that since customizing CDM logic is not supported currently, you might have to copy internal code from the cddDataProvider to make it work, including loading the document graph and transforming it into the structure the client “understands”.