Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9044079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:53:48+00:00 2026-06-16T10:53:48+00:00

i am trying to use django-dynamic-formset library to dynamically add forms to a formset.

  • 0

i am trying to use django-dynamic-formset library to dynamically add forms to a formset. The library clones the form pretty well but it is not able to clone the value attribute of the submit input for some reason.

following is the formset that i am using django-dynamic-formset on.

{% if eduforms %}
    {% for form in eduforms.forms %}
    <div class="formset-form">
        <form id="{{ form.prefix }}" method="POST">
            <h4>Add a Project</h4>
            {% csrf_token %}
            {{ form.as_p }}
            <div class="button-container right">
                <input class="button" type="Submit" value="Update Information" />
            </div>
        </form>
        <script type="text/javascript">
            jQuery(document).ready ( function(){
                jQuery('{{ form.prefix }}').validationEngine();
            });
        </script>
        <div class="clearfix"></div>
    </div>
    {% endfor %}
{% endif %}

i have tried binding the function to the div#formset-form container as follows.

<script type="text/javascript" src="/static/js/jquery.formset.js"></script>                                                                            
<script type="text/javascript">
    $('.formset-form').formset();
</script>

is there something i am doing wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:53:49+00:00Added an answer on June 16, 2026 at 10:53 am

    all you need to do is use the keepFieldValues option of the jquery plugin that you are using and it will clone the values as well. So change:

    <script type="text/javascript">
        $('.formset-form').formset();
    </script>
    

    to

    <script type="text/javascript">
        $('.formset-form').formset({
            keepFieldValues : 'input:submit',
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use the dynamic django form script from http://www.djangosnippets.org/snippets/714/ The dynamic
I am new to django and trying to use django-messages to add inbox/compose/outbox/trash functionality
I am using webapp2, ndb model. I was trying to use django model forms
I am trying to use Django with jquery UI autocomplete but having trouble sending
I'm trying to use Django's annotate feature to add the count of a related
I'm trying to use django-multilingual and setup it properly. But what I found is
I've been trying to use Django-appengine to write a small web app, but I
I am trying to use django-sitetree but I don't understand how to do step
Newbie question here. I am trying to use the django-extjs library in my django
I'm trying to use django-localeurl in one of my project, but following the docs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.