Create dynamic webpage/form with input textbox

Hello,

I have one use case where I need to read the text enclosed in “{}” present in text file and I need to create input text box based on the number of “{}” present in text file.

For eg:
In the Abc.txt file, if we have sentence like “I am {name} and I belong to this {department}” then after reading this txt file, I need to create dynamic form with two input field (name and department) to receive the input from user and fill the user entered data in the placeholder.

Can anyone please help me how I can proceed on this.

I believe, we can not have the text box created dynamically. text container should be created a build time. Then you may have condition to hide or show as per condition. But the container should be already there,

But you can create the Dropdown list dynamically.