Introducing CrudHunt:Open-source Full-stack CRUDs for Next.js by KeenThemes
Browse CrudHunt

Form repeater error as well as kt-element item add issue


I'm using Django 4.0 , using the invoice template (<a>https://preview.keenthemes.com/metronic8/demo9/dark/apps/invoices/create.html</a>).

In the add item section i have replaced the text field with a select2 tag with options filled in dynamically by django.
Ex :

<select name="item[]" class="form-select form-select-solid" data-control="select2" data-placeholder="Select an item">
<option></option>
{% for item in items %}
<option value="{{item.id}}">{{item.name}}</option>
{% endfor %}
</select>


When i add an item row , the select box in the new row does not open at all. I have tried using repeater but i get the same error as mentioned in -> <a>https://devs.keenthemes.com/question/formrepeater-laravel-demo-1</a>
Have tried the solution given by author but it isn't working.

PLEASE HELP OUT AS I NEED THIS TO COMPLETE AN APPROACHING DEADLINE

sad


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)