Hi @Themeco team !
I am currently working on a subscription flow designed to guide users throughout a custom checkout with as little friction as possible.
In this specific use case, I am using CSForms to collect the user data needed to process orders.
As an UX architect, I want the form to be as user-friendly as possible, regardless of where the user is subscribing from in the world. This is not only to make data entry easier for them, but also to properly structure the output data before it gets processed.
That is why I want to implement input masks for fields where data needs to be both structured and flexible, for instance, international phone numbers and pre-filled, international addresses (autocomplete/auto-suggested).
To achieve this, I understand that I need to rely on existing, widely-used JS libraries like iMask.js, or perhaps others I am not familiar with yet.
While all of this sounds promising, here is the core question: how can I implement these industry standards using CSForms? Is CSForms designed to handle these professional use cases? What are the best practices for implementing specialized input masks within CSForms?
Specifically, my question covers:
- Country selectors with flags and dialing codes - for phone number inputs.
- Auto-suggest / autocomplete for addresses country input fields.
- Input masks - specifically for credit card fields and processes needs.
[Edit] Maybe there is simple way to achieve that, i’m still investigating what is used by woocommerce/Woopayments for those inputs, to achieve it the same way
Thanks for your help!
Florian