Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Form Repeater - Laravel


Hi,
I would like to know what I need to do in order to use Form Repeater in Metronic template for Laravel. I was trying to start with a basic example of Form Repeater, I put HTML and JS code inside the blade template. I can see HTML elements rendered with CSS but I have a JS error:

Uncaught TypeError: $(...).repeater is not a function

That means I do miss repeater JS.

What do I need in order to install or include that JS?


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 (1)


Hi,

To use Form Repeater in the Metronic template for Laravel, you need to activate the necessary vendor scripts for Form Repeater. It seems that you are missing the required JavaScript file.

You have a couple of options to include the Form Repeater JS:

1. Using Helper Function:
In your controller or view, you can use the provided helper function `addVendors` to activate the necessary vendor for Form Repeater. This will include the required JavaScript files.


addVendors(["formrepeater"])


2. Manual Inclusion:
If you prefer to manually include the JavaScript file, you can include it in your blade template like this:


< script src="{{ asset('assets/plugins/custom/formrepeater/formrepeater.bundle.js') }}"></script></code >

Make sure to adjust the path according to your file structure.


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  :(
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  :(