Is there something similar to FormattedTextField in Perspective?
Especially for dates, clicking 50 times to get to a specific month, year, day, hours and minute is quite annoying and takes longer than just having a specific format muscle memoried. DatetimeInput has a caret in its icon, but as far as I am able to tell, I can’t type into it?
I’ve read through the docs and forums and no matter what I do I am forced to use the popup picker? I want to be able to type, and it adds in the dashes, slashes, and spaces. eg. 2026010210000000 becomes 2026-01-02 10:00:00. Am I missing something?
This was an idea for entering IP address, but you might be able to tweak to your use case. I would have an additional confirm button so whatever is tied to the value doesn't thrash while you are entering a value. If you built it in a custom popup then you could send new value on popup close.
I don't think there is anything built in. If you have the resources, a custom module that adds a component specifically for this might be reasonable.
Validation is one thing, what I mean is more convenience. Like when you type in a phone number or credit card, even dates ive seen do this, and it just adds in the extra stuff for you as you type. I’ve tried doing this a bit with the text field, but it was always kind of a pain. I might be able to do it with an underlying textfield that focuses itself and is invisible. I havent found a satisfactory solution to this, this might be a good foray into perspective component module dev though