Skip to content

Conversation

alexsilva
Copy link

No description provided.

@Teut2711
Copy link

Teut2711 commented Aug 4, 2020

I can see the checkbox even after using

{{ form.DELETE }}
.


      <div data-formset-body>
        <!-- New forms will be inserted in here -->
        {% for question in formset %}
      
  
        <div data-formset-form>

          {{question.question}}
          {{question.answer_type}}
          <div class="hidden">{{ question.DELETE }}</div>
          <button type="button" data-formset-delete-button>Delete form</button>
        </div>
        {% endfor %}
      </div>

      <!-- The empty form template. By wrapping this in a <script> tag, the
    __prefix__ placeholder can easily be replaced in both attributes and
    any scripts -->
      <script type="form-template" data-formset-empty-form>
        {% escapescript %}
            <div data-formset-form>
                {{ formset.empty_form }}
                <button type="button" data-formset-delete-button>Delete form</button>
            </div>
        {% endescapescript %}
    </script>

      <!-- This button will add a new form when clicked -->
      <input type="button" value="Add another" data-formset-add>

      <script>jQuery(function ($) {
          $("#formset").formset({
            animateForms: true
          });
        });</script>

    </div>

image
How to get rid of the checkbox?
Is there anything that I 'm missing?

@Teut2711
Copy link

Teut2711 commented Aug 8, 2020 via email

@BismeetSingh
Copy link

Is there a way to remove the add and remove links that come ootb. I want to replace with my own image icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants