Handling multiple input values for single html form in django

前端 未结 4 870
暖寄归人
暖寄归人 2021-01-04 18:36

I have a html form with 3 inputs and steps buttons.

  • 1st step user must put first name and press button 1
  • 2nd step user must put l
4条回答
  •  别那么骄傲
    2021-01-04 19:13

    It's not fully clear to me in the question what the desired behaviour is. As someone pointed out, it may be a design question.

    By "handle inputs in my views.py step by step" it looks to me that the data is desired to posted for every step and handled by backend? (ajax or not)

    If it is desired to have a post-response cycle for every step without ajax, the previous steps needs to be part of the returned context/template and it's possible to "handle" the step in the backend.

    There exists a quite powerful tool for this type of situations, the FormWizard in django and that may give you some inspiration for your specific solution?

提交回复
热议问题