Question
not applicable
IN
Last activity: 9 Jun 2022 7:44 EDT
How to write Edit input Logic for text field for automatically putting the Hypen after first 3 digits
Hi,
I have a requirement to automatically input Hyphen symbol after manually entering the first 3 digits.
3 Digits, Hyphen, 8 Digits.
User should be allowed to enter 8 more digits after hyphen.
Total length including hyphen should be 12 ( 3+1+8)
example :- 123-12345678
The system should auto-populate hyphen immediately after the first 3 digits are entered, and later rest 8 digits can be entered by user manually.
Could you share code on how to do this in Edit input rule.
And what other configurations are required to immediately display hyphen after first 3 digits are entered instead of inputting hyphen after all the 11 digits are entered.
***Edited by Moderator Marije to add Capability tags***