Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
Setting Multi-Select field with values from a text field

I am new to NetSuite scripting and learning as I go. I needed values from a text field to set the values in a Multi Select field for Custom Record. This is running in SuiteScript 1.0. (According to people I spoke to, NetSuite does not have a native function to paste mass custom record names in a Multi Select field so the suggestion was to have a text field and an AfterSubmit event.)

My script works in a beforeSubmit event but now trying to work out multiple values rather than singular. See test script below:

function beforeSubmit(type) {
    var existId = checkStr(nlapiGetFieldValue('custevent_ids'));

    if (checkStr(existId) == '') {
        var testIds = nlapiGetFieldValue('custevent_add_ids');
        nlapiSetFieldText('custevent_ids', testIds);
    }
}

I tried different variation of arrays to set the field with multiple custom record names but I just get blank, but singular it sets the custom record.

Thanks for helping a newbie out

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!