Jason
03/19/2025, 8:04 PMCeligo AI
03/19/2025, 8:04 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you can change the tab title to include the transaction number by using a scripted inline HTML field. This can be done in the
beforeLoad
event. Here is an example:
javascript
var recordNumber = context.newRecord.getValue({'fieldId':'tranid'});
var fldPageTitleHTML = context.form.addField({
'id':'custpage_page_title_html',
'type':serverWidget.FieldType.INLINEHTML,
'label':'Page Title HTML'
});
fldPageTitleHTML.defaultValue = '<script>top.document.title=\\'' + recordNumber + ' - NetSuite (Company Name)\\'</script>';
However, you may want to filter it to not run in create or copy since the tranid
field won't have any value in those contexts.
As for the transaction number, it seems that NetSuite can apply a transaction number before saving the transaction on create if the "Allow Override" checkbox is flagged on the Auto Generated numbers setup page. If this is flagged, the system pre-populates the Transaction Number on Create so that the user knows what it is and can override.
For a customer payment, it is possible to programmatically set the Payment #
or tranid
in the record. However, the account has to be set up to allow it. This can be done by going to Setup -> Company -> Auto generated number and setting it to allow custom inserts.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/19/2025, 8:04 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845347
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838861942
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832767487
Celigo AI
03/19/2025, 8:04 PM