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!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Don't miss out on our Question of the Week! You only have until tomorrow, October 16, 2025, 2PM ET to comment your answers and earn rewards! Click here for more details.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
Share Your SuiteWorld Experience & Earn a Special Badge!
Pricing script won't do it's thing
Hello
I've written a script to auto-populate 4 different price levels based on a figure entered into a custom field. It triggers on field changed. It triggers correctly. The values populate themselves and all is good... until you save the record. It won't save the new pricing values. In fact, it won't save any values entered into the pricing fields manually either.
Anyone care to comment?
function field_change(type,name) { var baseprice = (nlapiGetFieldValue('custitemsellpricegst') / 1.1); var corpten = ((nlapiGetFieldValue('custitemsellpricegst') - 0.833333) / 1.1); var corpfive = ((nlapiGetFieldValue('custitemsellpricegst') - 0.416667) / 1.1); var bprice = Math.round(baseprice*10000)/10000; var tenprice = Math.round(corpten*10000)/10000; var fiveprice = Math.round(corpfive*10000)/10000; if (name == 'custitemsellpricegst') { document.getElementById("price_price_1_1_fs").value = bprice; document.getElementById("price_price_1_2_fs").value = tenprice; document.getElementById("price_price_1_3_fs").value = fiveprice; document.getElementById("price_price_1_7_fs").value = bprice; } }
0