Rendering form template for HTML5 forms on AEM Forms 6.3 on JEE | Community
Skip to main content
New Participant
May 16, 2018
Solved

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

  • May 16, 2018
  • 2 replies
  • 2096 views

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=sampleForm.xdp
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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

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

2 replies

New Participant
May 17, 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!

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
May 17, 2018

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