Hi @ameneh maleki ,
As per my understanding, you don't want users to type in English characters in the fields like National Code as it should be composed of "+" and numbers. If so, you can refer to the below JS code and embed it into the new item page using the script editor web part. Please use Regular Expression in PreSaveAction method like this:
68476-samplejs.txt
Alert will pop out if users type English characters in my test field. And invalid items cannot be saved to the list.
If you type valid characters in this field, it can be successfully saved to the list.
Please feel free to let me know if i misunderstand what you mean.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.