https://netsuiteprofessionals.com logo
b

burkybang

05/03/2022, 9:11 PM
Does anyone know where to find documentation for the available entry points of Customer Online Form scripts in 2.0/2.1? Here's what I've found so far. https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N976289.html
w

wbermudo

05/03/2022, 11:15 PM
You can only use SS1 for online forms
b

burkybang

05/03/2022, 11:43 PM
The docs give an example of 2.0
b

battk

05/04/2022, 2:22 AM
b

burkybang

05/04/2022, 7:19 PM
I saw that already. Thanks. Here's a SuiteAnswers article talking about SuiteScript 2.0. https://netsuite.custhelp.com/app/answers/detail/a_id/75109
Why would they provide an example in 2.0 if it's not supported?
b

battk

05/04/2022, 8:28 PM
it is supported
you have the same entry points as ss1
b

burkybang

05/04/2022, 8:31 PM
How do I import modules? According to the example, it looks like there might be a global variable for each like "Record". Does that sound right? How do I tell NS that I'm using SS 2.0? Normally there's a comment at the top of SS 2.0+ script files indicating the script type and SuiteScript version.
b

battk

05/04/2022, 8:32 PM
same as for normal suitescript 2 client scripts
its the same except you have less entrypoints
and less access to suitescript apis
b

burkybang

05/04/2022, 8:34 PM
Okay, I'll give that a try
Sweet. That worked beautifully. Thank you. These are the supported entry points:
Copy code
{
  pageInit,
  validateField,
  fieldChanged,
  saveRecord,
}