taipy icon indicating copy to clipboard operation
taipy copied to clipboard

Improve input with phone number mask

Open FlorianJacta opened this issue 2 years ago • 20 comments

Description The goal would be to add a phone number mask if needed.

Acceptance Criteria

  • [ ] Ensure new code is unit tested, and check code coverage is at least 90%
  • [ ] Propagate any change on the demos and run all of them to ensure there is no breaking change
  • [ ] Ensure any change is well documented

FlorianJacta avatar Oct 24 '23 07:10 FlorianJacta

we could extend the mode property to support phone numbers

FredLL-Avaiga avatar Mar 22 '24 16:03 FredLL-Avaiga

hello! I am a first time contributor do you think I could be assigned for this issue?

ioannastantzou avatar Apr 12 '24 11:04 ioannastantzou

Hi @ioannastantzou, and thank you for volunteering to make Taipy better. We wanted to have some more time to think about how to handle this issue.

There are several problems to handle for that feature:

  • There is no such thing as a generic 'phone number' mask.
  • I see no reason why only phone number input would be guided. That should apply to anything that has a format (social security number, zipcode...)
  • Because the feature really shines on the front-end (with an instant validation of the input), this requires an implementation in JavaScript. However, the mask itself (or a validation callback function) must be defined on the back-end in Python. We need to come up with a way to inter-operate easily.

If you have any thoughts on these rabbit holes, please let us know. I'm afraid there's nothing that can be done until these are solved. That impacts both requirements and implementation considerations.

FabienLelaquais avatar Apr 15 '24 08:04 FabienLelaquais