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!
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
basic coding example and questions
I'm new to scripting and have some questions on the coding examples below:
EXAMPLE ONE
**This function runs using the 'before submit' event on the task form, it's getting an error relating to the nlapiGetFieldText function - the error is "nlapiGetFieldText" is not defined - I'm trying to work out why.**
function task() { var primary_meeting = nlapiGetFieldText('custevent5'); nlapiSetFieldValue('custevent20', "YN"); if (1+1 == 2){nlapiSetFieldValue('custevent23', 160);} } EXAMPLE TWO
**I need this function to see if either of 2 checkboxes are ticked - custevent 5 and 17 and put a 1 in the field custevent20. The error I get is "missing ) after condition (samplePageInit#4)" - I can't see which bracket is missing, also does the #4 refer to line that the error occurs in as I've notice the number changes.**
0