how do I create a save and new button for inventor...
# ask-stanley-ai
a
how do I create a save and new button for inventory transfer
c
AI generated answer (using internal Slack threads):
To create a 'Save and New' button for Inventory Transfer, you would need to use SuiteScript, NetSuite's JavaScript-based API. Unfortunately, the threads provided do not contain a specific code sample for this task. However, I can guide you through the general steps: 1. Create a User Event Script that will be triggered on the 'beforeLoad' event of the Inventory Transfer record. 2. In this script, you will need to add a button to the form. You can use the
form.addButton
method for this. You can name this button 'Save and New'. 3. You will then need to write a client script that will be triggered when this button is clicked. In this script, you will need to save the current record and then redirect the user to a new Inventory Transfer record page. You can use the
record.save
method to save the current record and the
redirect.toRecord
method to redirect the user. Please note that this is a general guide and you may need to adjust the steps based on your specific requirements and NetSuite setup. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826073706
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825224221
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814704657
Please provide your feedback on this answer.