---
title: "Discussion on \"Validating UPCs with SuiteScript in NetSuite\" | Hashnode"
description: "Discussion on \"Validating UPCs with SuiteScript in NetSuite\". NetSuite's out-of-the-box UPC field (id 'upcode') is a free text field that allows up to 999 characters. For my use case, I only want the UPC field to be blank or contain 12 digits on inventory items and assembly items. This can probably be achieved ..."
url: "https://hashnode.com/posts/validating-upcs-with-suitescript-in-netsuite/665647001631325368757383"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Validating UPCs with SuiteScript in NetSuite](https://suitesimplicity.hashnode.dev/validating-upcs-with-suitescript-in-netsuite?utm_source=hashnode&utm_medium=feed)

NetSuite's out-of-the-box UPC field (id 'upcode') is a free text field that allows up to 999 characters. For my use case, I only want the UPC field to be blank or contain 12 digits on inventory items and assembly items. This can probably be achieved ...

Oct 17, 2023 · 1 min read · suitesimplicity.hashnode.dev  
Updated Aug 31, 2024  
Read the article

-   [#netsuite](https://hashnode.com/tag/netsuite)
-   [#suitescript](https://hashnode.com/tag/suitescript)

## Written by

[Jared Staggers](https://hashnode.com/@jstaggers)

@jstaggers · Fort Collins, CO, USA

  
[View profile](https://hashnode.com/@jstaggers)

NetSuite Administrator and Aspiring Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
