Restrict entering special chracters

I there any way to block the entry of Special characters by user while typing.

i.e. name= string
name should contains only a-zA-Z0-9 and no special characters are allowed to enter.

By using constrained datatype am able to handle this but it doesn't block the entry of special characters instead displays error if special characters are added.

Please sign in to leave a comment.