Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

thomascurry_okg
Level 1
Level 1

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?

1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

2 Replies
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

thomascurry_okg
Level 1
Level 1

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!