django-formset-js
django-formset-js copied to clipboard
Fixing checkbox check when your type is hidden.
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>
How to get rid of the checkbox?
Is there anything that I 'm missing?
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 .
Is there a way to remove the add and remove links that come ootb. I want to replace with my own image icons.