e-commerce and retail

Dynamic Form

Discover a robust pattern for dynamically generating interactive form structures using a library of question configurations and a form blueprint defined by Decision Tables.

DecisionRules

David Škarka

Template author

This Decision Flow generates a complete, structured JSON payload for a form (list of questions, types of answers, and response options) by dynamically executing a list of rules that retrieve all necessary configuration details.


Solution components:

  • Decision Tables Question Set Up and Options Set Up define the detailed presentation and logic for every single question and its possible responses (e.g., text, validation, minimum/maximum scale values, and response labels), effectively creating your question configuration library.

  • A Decision Table Form Set Up defines the highest-level form policy. It retrieves the form's descriptive metadata (title, description) and checks the form's time validity.

  • A Decision Table Form 2 Question acts as the core form blueprint, defining precisely which questions will be included in the specific form

  • A Decision Flow Dynamic Form orchestrates the assembly:

    • It executes the Form Set Up table to validate the form's existence and version.

    • It executes the Form 2 Question table to get the list of required questions

    • For each question, it dynamically calls the Question Set Up and Options Set Up tables, collecting all necessary UI data.

Use this Decision Flow as a robust pattern for defining and executing your dynamic forms. You can simply call it from your front-end application using a REST API to receive the latest form configuration in real-time.


Check iconA checkmark inside a circle signifying "yes"Minus iconA minus inside a circle signifying "no"PROS IconA plus symbol representing positive aspects or benefits.CONS IconA minus symbol representing negative aspects or drawbacks.

More Templates

See Other Templates

financial servicessuggested

A/B Testing

Discover a simple way to assign a test group for performing A/B Testing on your decisions.

Explore
financial servicessuggested

Risk Based Pricing

Discover a simple way to apply a suitable Risk Based Pricing matrix based on a type of client.

Explore
financial servicessuggested

Eligibility and Policy Rules

Discover a simple way to define and execute various sets of rules and get the final decision outcome.

Explore