Find & Replace in input field
-
Good day,
I wish to know if it would be possible to add code to automatically make changes to a user’s input of a field. I have a number field that I require a telephone number but i wish to automatically make changes to the content based on its current value. I.E. if a user paste the value “012-345-6789” I want the code to automatically remove the “-” from the content.
Another thing would be to check of the number starts with the country code, i.e. here in SA its “+27”, that it should remove it and replace it with a “0” that the number reads “0123456789” instead of “+27123456789”.
Is this possible?
The topic ‘Find & Replace in input field’ is closed to new replies.