I have custom member profiles. On their personal update page they can read & update their own info.
One input is "“about”.
“About” is public information, visible to any website visitor.
I want to restrict members from typing their email in the “about” section. I guess this would work with restricting “@” ?
But some members have their own website with their own contact-information, and I want to restrict that too. So – would it be possible to restrict “.com” from being typed?
Cheers
@CODE-NINJA - got anything? 
Hey,
you can achive this by applying validation on the inputs fields, like a regax patterns which are created for this purposes.
Best regards
Danish Naseer | Full stack web developer | Esire.Inc - Digi Decoded
1 Like
@DigiDecoded
Hi, I’m aware of that, I’m asking for the specifics.
I do see that I didn’t mention “regex” and “validation fields”, but I’m asking what specific regex will do what I wish, and where to add that regex (in code, since my textbox setting doesn’t have a validation field)
can you share the url of your store and what input field that you have used?
Its www.kreativthold.dk , but you’d need to sign up to get to the update page.
It’s the input “text box” not “text field”, because I’ve been thinking that made more sense for longer texts.
But maybe I should switch it to a text field?
Edit: No, switching to field is not a possibility, since all text would be on one line only.
Field has validations, textbox doesn’t
So - that’s a problem
Hence why I’m looking to code instead.
can you share a screenshot? i have signup at your website but i am unabled to find that update page.
Are you danish? You have “danish” in your name, and that’s what my site language is.
You click “Min profil” and then “opdater profil”
Bottom of that page (almost) is a textbox with the title “Beskrivelse”
Yeah ,my name is danish Naseer,
and yes i know denmark is also called by danish.
You can use some regex, i think.
… I know, but What regex ?? 
Try the following…
^(?:(?!\S*@\S+)(?!\S*.com\S+).)*$
1 Like
Thanks. I don’t have time to try it yet, but I’ll mark it as a solution for now.