I have seen a sample where a HTML5 form is calling a Data Model on an event.
What we are looking for is the possibility to add some data and use that to call a DM.
Anyone that could point me in the right direction or have a sample?
The form Data model is meant to work with Adaptive Forms authoring.
Please see .
For HTML5 forms, most features work the same as they do in PDF. Here is a list of the differences at .
If you setup an OLEDB connection in your XDP to pass data into your form, I believe the DB connection should still work server side. I'm not sure if the connection is supported on the client.
I have not tried this myself in HTML5 forms, but most of the XFA constructs  are still supported server side if I am not mistaken.
 Adobe Experience Manager Help | AEM Forms Data Integration
 Adobe Experience Manager Help | Feature differentiation between HTML5 forms and PDF forms
Nice response Kevin!
but isn't this only for Adaptive Forms? Did you use a HTML5 form on your test?
If you did, could you send me the xdp?
Sorry. This one:
I couldn't find the sample "invoke form data model example" at
Have I missed something?
First, make sure you have AEM 6.3 with SP1 or higher. I would suggest starting with this article:
You will learn there how to configure data sources. Once you have a data source created, add a get service and test it as described in the article.
When you got that going, check out this article:
You might want to go straight to the section "invoke form data model example".
I was able to get this working with a relational database. Hope this helps.
Yes, that is correct
So if I understand your question correctly, you want to pass some id (i.e data) from your form to Data model and same data or id can be used in service. Service is part of your data model.
Is that correct?
Yes, that is what I am looking for. Add an id an call a service defined in a data model.
What do you mean by "add some data"? Do you mean, for example, user enters the ID of a database record and you fetch that using a get service defined in your data model? I can walk you through that, but first please clarify if that's what you need.
What I meant, I couldn´t find the sample I was looking for.