Cancel
Showing results for 
Search instead for 
Did you mean: 

How do i restrict name field limit to 100 chars ?

Creator
Creator

While creating an Item, when an user enters more than 100 chars in the Name field, it will not allow us to type and it prompts that limit is 100 chars (it is customised). But on Revise or check-out edit, it is not restricting and takes 128 chars in the name field as it is mentioned in the TC_Allow_Longer_ID_Name preference. Is there any way to handle it?

4 REPLIES 4

Re: How do i restrict name field limit to 100 chars ?

Gears Phenom Gears Phenom
Gears Phenom

Create a naming rule with the following regex: %^.{1,100}$

 

I've actually am using this one exactly to restrict the Item Name.

 

Jamie

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: How do i restrict name field limit to 100 chars ?

Creator
Creator
Hi Thanks.

If an user input more than 100 chars,will it trim to 100 or how does it handle?

Re: How do i restrict name field limit to 100 chars ?

Gears Phenom Gears Phenom
Gears Phenom

It will give them an error that it cannot create the Item. It will display the which property and the naming rule that caused the error. They can select OK and go trim it themselves. 

 

Jamie

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: How do i restrict name field limit to 100 chars ?

Creator
Creator
Great!

Let me try this.