You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this issue that I cannot submit the form via multiple buttons in bootstrap modal. Check out the code below.
{% for payslip in payslips %}
<divclass="modal-block-body"><span>{{payslip.payslip_file}}</span><span>{{payslip.payslip_month}}</span><span><ahref="#">Check it</a><buttonclass="btn btn btn-link" type="submit" name="delete" value="{{payslip.pk}}">Delete payslip</button></span></div>
{% endfor %}
My idea was to use different values for each of the loop objects' buttons. But when I submit the form, the only field present in the POST request body is the csrfmiddlewaretoken. I tried to use other types of inputs, like <input type="text"> and that information is POSTed, but the info about the button pressed is not.
Are there any things that I'm missing or do you have any ideas on how to overcome this problem?
The text was updated successfully, but these errors were encountered:
Hello,
I have this issue that I cannot submit the form via multiple buttons in bootstrap modal. Check out the code below.
My idea was to use different values for each of the loop objects' buttons. But when I submit the form, the only field present in the POST request body is the csrfmiddlewaretoken. I tried to use other types of inputs, like
<input type="text">
and that information is POSTed, but the info about the button pressed is not.Are there any things that I'm missing or do you have any ideas on how to overcome this problem?
The text was updated successfully, but these errors were encountered: