Try ERPNext Buy Support Partners Foundation

Customize Form not to allow spaces in the Item Code field

Is it possible to not allow spaces under Item Code?

image

Yes, you can have spaces in item code. Check the example in the screenshots below.

Hope this helps.

Hi Michelle,
You have it the other way around.
I want to make sure there are no spaces in Item Code.

Apologies for the previous response. The Item Code field is a data field, so it will allow spaces. For validation against spaces, you can write a custom script for the same. Check this link: https://docs.erpnext.com/docs/user/manual/en/customize-erpnext/custom-scripts

Hope this helps.

I know this is for purchase order, but you can adapt them to item