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
Client Script Run on Button Press to Save a New Record
Hi all,
Something that I thought would have been so much simpler, but clearly isn't working for me just yet is I have a Client Script called upon the user pressing a custom button.
function CompleteLaterButton_BeforeLoad(type, form) { if (type == 'create' || type == 'edit') { form.addButton('custpage_complete_later', 'Complete Later', 'complete_later_cs()'); form.setScript('customscript_expense_report_cs'); } }Very simplistically, this Before Load script creates my button and sets the client script function to call when the button is pressed. No problems here - this is working just fine. What I want to achieve, however, is from this client script, I want to do some field setting - which also works - and then I want to save the record (i.e., this button is effectively another 'Submit' type button). Given that this needs to work on both Create and Edit events, what API do I call to save this Transaction record where I have no Record ID yet
0