Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
SuiteScript 2.0 UpperCase function
This SuiteAnswers shows SuiteScript 1 using the toUpperCase() function
ValidateField Sample (custhelp.com)
I am trying to use something similar in SuiteScript 2.0, but it appears to error.
This is the line I am using:
var shiptopostcodelettersU = shiptopostcodeletters.toUpperCase();
The source variable (shiptopostcodeletters) should be two alphanumeric characters (it is sourced from a postcode field using):
var shiptopostcodeletters = shiptopostcode.split(/[0-9]/,1);
Should toUpperCase(); work in SuiteScript 2.0, or is there an alternative function I should be using?