0

This might be simple but not able to get the work done. here is a modelformset using which specific # of forms could be displayed:

formfact = formset_factory(ModelForm,extra = count)
fset = depffact(prefix='new')

My question is: how can i display single form a time,how can i modify it such a way that everytime user clicks a button previous forms are validated and one more modelform is displayed. i.,show form1,if asked for show #2,#3 etc

i tried keeping track of count and using that count but was not successful.Ideas most welcome

stackover
  • 6,275
  • 6
  • 22
  • 20

1 Answers1

0

by mistake i asked similar question twice but i did answer it in this post incase if you want to refer. if you have a better solution, appreciate you sharing it.

Community
  • 1
  • 1
stackover
  • 6,275
  • 6
  • 22
  • 20