Mask on fields
# avo-2
v
Guys, there is any way to add js mask on avo fields? Like monetary format in number fields for example
l
Hi @victorious-kangaroo-12568 , you want necessarily to be with js?
You can do it with stimulus controllers on resources
But i would suggest to use the
format_using
option
Aaah you mean a front end mask on the form?
v
yes, I'm used to add this js lib https://imask.js.org/ using import-map to my old rails aplciations, and would be nice to use this with avo, or of course, in another way that you suggest
yep
but I can implement myself using stimulus too
l
Hmm, there are several paths that can be followed, one would be to try it with stimulus
Another one, and could be interesting to try, is a custom field
v
hummm sounds good use a custom field
l
Let me know if you find any obstacle on the process
v
@loud-jewelry-99127 ty!
l
Anytime!