The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Form Validation on Laravel Metronic 8.2.9 shows error message twice


Hello, I've just followed this guide https://preview.keenthemes.com/laravel/metronic/docs/getting-started to setup my project, everything's working fine it's just that whenever I try to use the login form, the validation messages are showing twice under the input fields e.g "Email is required" is showing twice, password message as well and I think I noticed that the sweetalerts are opening twice but very quickly right after each other. I have tried to debug this many times but I couldn't figure it out. Any help?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


For now, I’ve added a simple lock mechanism to prevent the init function from running multiple times.

path ://public\assets\js\custom\authentication\sign-in\general.js

At the top of the module, I added:

var locked = false;


Then, inside the init method, I added:

if (locked) return;
locked = true;


This ensures the initialization only happens once and prevents potential issues from multiple bindings or repeated executions. hehe



I am having the same issue, any updates on this? I checked your online demo and it's working fine, but when I follow the setup guide I getting the same issue


 
Deleted comment

Hello @Faizal,

Have run "npm run dev"command still phasing same issue.



Create support ticket for Metornic theme issue:



Subject: Issue with Login and Register Validation in Metronic Theme (Laravel Version)

Hello Support Team,

We purchased the Metronic theme and are using the Laravel version for our project setup. However, we are experiencing an issue where the validation on the login and register screens is firing twice.

We’ve recorded a video demonstrating the issue for your reference. Please review it and let us know how we can resolve this problem.

Video Link:

Looking forward to your assistance.



Hi EmilioW

Could you please try to rebuild the assets? Run command "npm run dev"?

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.