What im trying to achieve is to create a question with ajax. If the question is chosen is list or choices, i can add question answer choices with formsets. So i hide/show the table, where the formsets are being created/deleted. Default hide for answer_table is used when the question is cretead, because the default option is text.
Problem is in the title. Adding new lines and saving them works just fine with ajax. My code.
Modal is a generic bootrap modal, i populate modal-body with this ajax succes like this.
What im trying to achieve is to create a question with ajax. If the question is chosen is list or choices, i can add question answer choices with formsets. So i hide/show the table, where the formsets are being created/deleted. Default hide for answer_table is used when the question is cretead, because the default option is text.