django-formset-js icon indicating copy to clipboard operation
django-formset-js copied to clipboard

Fixing checkbox check when your type is hidden.

Open alexsilva opened this issue 6 years ago • 3 comments

alexsilva avatar Jan 03 '19 17:01 alexsilva

I can see the checkbox even after using

.

      <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 avatar Aug 04 '20 22:08 Teut2711

thanks @SwaroopP

On Fri, Aug 7, 2020 at 7:31 PM Swaroop P [email protected] wrote:

please add this css.

.hidden { display: none; }

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pretix/django-formset-js/pull/4#issuecomment-670531568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVVIWVIL6VCPPUP4DIAZQLR7QCKFANCNFSM4GNB7LGA .

Teut2711 avatar Aug 08 '20 05:08 Teut2711

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

BismeetSingh avatar Jul 13 '21 05:07 BismeetSingh