I’m trying to solve this for a couple of days already and still can’t find a proper solution, please help me someone
I got a new project with a how-to section. In this section there’re step-by-step articles about making stuff. The thing is, when user is adding a new article the number os steps is not a constant and the form for each step is generated by js after user press “Add step” button.
Each step have it’s own enty in database (with foreighn key set to article’s id) and so the model is set for step and for the article. I have no problem with the article form, but I can’t figure out how to hadle multiple forms for the same StepModel.
I found a solution, may be temporary, is to create a separete Form Model and a Controller action to generate and handle it via AJAX. It seems to work as it should, but I still think there’s a better way.