Get 2025 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

How to input currency on input box?


How to input currency on input box?
Example: input value ‘45234.34’ I want to format value to ’45,234.34’

I have to read all document about ‘Metronic 8’ and ‘RobinHerbots Inputmask’
But I can’t see and when I try with example on git of Inputmask is not working with metronic

https://robinherbots.github.io/Inputmask/#/demo

Thank you.


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


Figuring out how to format currency in input boxes can get frustrating, especially when you're trying to make the user experience smooth and error-free. It's all about keeping things intuitive while ensuring accurate data entry. I’ve seen platforms handle this brilliantly, especially those dealing with financial transactions where precision is key. Speaking of which, if you're ever diving into platforms like this, having resources like the gofundme phone number handy can be a lifesaver for quick support. How do you usually approach currency formatting? Any favorite tricks or libraries to recommend?



Sorry, but this has force currency min and max length,
i want to free style of currency length and convert 2 digits

like currency on https://robinherbots.github.io/Inputmask/#/demo



Hi,

We do not have such current format examples that we can share.

The examples you shown are based on the Inputmask plugin so you can implement the currency format you need by referring to the plugin's official documentation:
https://robinherbots.github.io/Inputmask/#/documentation

Regards.



Hi Saranw,

Please refer to Input Mask Metronic Integration and Inputmask Official Docs.


// Currency
Inputmask("&euro; 999.999.999,99", {
"numericInput": true
}).mask("#kt_inputmask_6");


Regards,
Sean


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