Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Setting customer password & password2 must be in client script
I spent a while researching this & finally had to put a case in. Since I found nothing about this in SuiteAnswers, Help or the Online Group, I wanted to post something in case that would help others.
In some cases, on the customer record, we need to set the password & password2 fields to a random value when the record is created. I set this up in a user event server script. I set the password like this:
recCust.setFieldValue('password', 'ab123c'); recCust.setFieldValue('password2', 'ab123c');This always got the following error:
EXCEEDED_MAX_FIELD_LENGTH
The field password contained more than the maximum number ( 16 ) of characters allowed.
Tagged:
0