Hello,
I have a table where users can define dynamically the questionnaires of a checklist. The type of questions is very similar to a survey (Text, Date Only, Choices, Yes/no, etc..)
Example:

Whenever they want to complete the checklist, they will select from a lookup field which Form or Checklist, and onSave event will generate all the lines that should be filled according to their types.
I need advice on how we will be able to handle and validate that the points are being filled in as per their datatypes?
Example:
- If the type is DateOnly for the question -> Date Calendar Control should be added to the question automatically using the PCF.
- I might have for example to Choose one Sauce as a point -> The sauce datatype is a lookup that reads from a table their respective value hence the PCF should add the lookup control.
- The temperature is decimal as a datatype meaning that the only value that will be accepted is a number.
Clearly, we will need a PCF that adds the right component as per the questionnaire datatypes.
I noticed that this functionality is already done by Reza on Power Apps canvas but now the requirement is different and should be in a model-driven app. I know that a custom page is an option but the process of storing/viewing data will be different because we need to store it in a JSON format and if the users want to see it directly in model-driven the only way is to have access to the custom page and JSON length text might vary based on the questionnaires so we need to avoid exceeding the characters limits. I also think we could have a cloud flow that parses the JSON and splits the records.
This functionality is very similar to how we can add/edit product properties in the sales modules as Microsoft already has this component available:


What will be the most effective approach to achieving such a requirement? Could you provide some documentations that can guide us?
Any help is greatly appreciated.
Thank you!