Dynamic form set based on user input and external data | Community
Skip to main content
hariaem
Level 2
February 16, 2018
Solved

Dynamic form set based on user input and external data

  • February 16, 2018
  • 3 replies
  • 2730 views

Working in a implementation where the we need to collect lot of information in multiple forms from the user. The subsequent forms need to be displayed based on some conditions defined in a rule engine (exposed as REST service, which can tell what is the next form that is eligible for that user). I looked at Form set (Adobe Experience Manager Help | Form set in AEM Forms ) and the eligibility expression, but it seems a simple javascript based implementation. The condition not just changes based on user inputs but also other events out of the forms, so it is important to invoke the rule engine to determine the next form. Does AEM Forms support this dynamic navigation to different forms?

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 James_R_Green
Content backfill required

3 replies

James_R_Green
Level 6
February 18, 2018

Hi Do you have an example of the kind of variables/rules that effect the users journey? Putting these things into context help alot.

From what i understand you are looking at setting the redirect manually via Javascript

hariaem
hariaemAuthor
Level 2
February 23, 2018

Hi, to give an example, lets say the goal is to build loan processing system, where details related to the user is being collected. If the user declares married, then additional form needs to be shown to collect spouse details. However there may be external (to aem forms) events like 

- User flagged for fraudulent activity (in which case shown a error page and dont take to next form in sequence). This needs to checked with every form submission, before proceeding to next form.

- another loan form is already processed (take to the submitted loan and discard current one)

James_R_Green
James_R_GreenAccepted solution
Level 6
February 24, 2018
Content backfill required