Skip to main content
1 of 3

Item Name Validation rule for hyphens

I have successful in creating a field validation rule where the Title should not have hyphens by using an regex validation. That is working as expected. Now I need to validate the items while creating it like the Item's Name shouldn't have hyphens in it. I have created an Item Validation rule as shown in below image.

[![enter image description here][1]][1]

But, the rule is not working as expected. I tried in all types of "Validation Rules" and the items still can be created with hyphens in it. Can anyone correct me if I am missing anything. [1]: https://i.sstatic.net/Ws20a.png