Hi,
I am using aem adaptive forms so that end user can answer few questions and on submit, is shown relevant results on a different page.
Below are the steps followed during implementation:
- Created an adaptive form under http://<<server name>>:<<port number>>/editor.html/content/forms/af/us/en-us/my-form.html
- Created a custom submission action under /apps/custom_submit_action, business logic to invoke sling service to get results is added in post.POST.jsp
- Approach is to set result object as an attribute in request and access it on results page and display results.
- Adaptive Form Container is configured with custom submit action and Thank You Page as results page for example http://<<server name>>:<<port number>>/editor.html/content/forms/af/us/en-us/my-form-results.html
- Dropped AEM Form Component(available OOTB) on a sites page, to embed above adaptive form.
- On form submit, user is not redirected to results/thank you page, don't see any exception either.
- Do i need to configure Thank You Page url in AEM Form component as well? If i do see below exception
java.lang.IllegalArgumentException: Not a valid identifier 'index,index.html'
Request you to let me know if this approach is correct or not.
Reason for creating adaptive form and embedding it on sites page is because only a certain user group must have access to create and maintain adaptive forms while normal authors must have permissions only to use/import adaptive forms on sites page.
Thanks & Regards,
Srikanth Pogula.