In here you can see that a vendor add phone numbers on a textarea field, and we cannot allow this.
For cleaning phone numbers on textarea fields I’m using the function display_value, what I show on the beggining, it will replace numbers for *.
But on a text field there is no display_value, how can we do this on text fields?
Regards
Can you please provide more details why you can’t create a new field as an attribute and select phone type? Because it would be the easiest solution that doesn’t require any additional code. Regarding the description, you can disable the phone from being specified there using a PHP snippet.
Sorry for misunderstanding, but we have a problem, our users are putting phone numbers on description, and that is forbidden.
They cannot give that information, they only shoud use the chat of our application, not sending phone numbers to contact clients.