Rendering form template for HTML5 forms on AEM Forms 6.3 on JEE

thomascurry_okg 16-05-2018

My organization is trying to render our forms out to HTML5, but I'm having trouble following the instructions on this page Adobe Experience Manager Help | Rendering form template for HTML5 forms

The instructions given are assuming you're using osgi service, but we want to do it using the jee stack instead.

I can get it to render the form by using http://localhost:8080/lc/content/xfaforms/profiles/default.html?contentRoot=d:/Forms&template=sample...
but when I try and merge data with it by adding "dataRef=path" to the URL, it looks like it just ignores that and just renders the form without data.

Any advice?

Accepted Solutions (1)

Accepted Solutions (1)


Assuming that you have the XML placed on the file system, you might have to perform two steps:

1. Add a new entry in prefill configuration for the file directory.

     Navigate to configMgr and search for the default prefill service configuration. Only "crx://" is there by default. You'll need to add an entry for the protocol you are trying. So here you may enter file:///C:/.*

2. Change render URL to dataRef=file:///C:/adobe/data.xml instead of dataRef=C:/adobe/data.xml

Answers (1)

Answers (1)

thomascurry_okg 17-05-2018

Thanks Mayank.
I didn't have the default prefill service configuration set for the path I was using to the xml.  After I added that it worked!