I am thinking of creating an app like Wufoo which requires adding dynamic elements in the form based on user interaction. So, to begin with I will have an empty form (with no fields). Then user will add a text-input, a text-area etc. using JavaScript on the page, on the fly.
I know that Django forms have the CSRF token within the forms. * I want to know if adding more fields to the form will somehow invalidate the form generated by Django. I am saving text inputs and text areas in different model classes. Also, the class for the form itself is the main class. class UserForms (models.Model): name = models.CharField(max_length=1000) description = models.TextField(blank=True, null=True) ... class Text (models.Model): name = models.CharField(max_length=1000) text = models.TextField() created_datetime = models.DateTimeField(auto_now_add=True, editable=False) modified_datetime = models.DateTimeField(auto_now=True, editable=False) active = models.BooleanField(default=True) user = models.ForeignKey(User, unique=False) form = models.ForeignKey(UserForms, unique=False) ... You could also point me to a tutorial or keywords that I should be using to search for this kind of behaviour. If you want additional information, please let me know. Thanks. AJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kRX4yZ_hFVMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.