JeyBob
09/20/2025, 3:06 AMCeligo AI
09/20/2025, 3:07 AMAI generated answer (using internal Slack threads):To default a value on a transaction form without using a workflow, you can use a User Event script or Client script in SuiteScript. For instance, if you want to set a default value to the tax item field on the client form, you can create a User Event script that sets the default value when the form loads. Here's a simple example:
javascript
function beforeLoad(type, form, request){
if(type == 'create'){
form.getField('taxitem').setDefaultValue('your_default_value');
}
}
In this example, 'your_default_value' should be replaced with the internal ID of the tax item you want to set as default. This script will set the default value every time a new record is created using this form.
Similarly, if you want to set a default Subsidiary for all forms, you can use a similar approach. Just replace 'taxitem' with 'subsidiary' and 'your_default_value' with the internal ID of the subsidiary.
For setting a default form when creating an invoice from a sales order, you can set the preferred form under the Linked Forms section of the sales order form. However, this option is only available for custom forms.
******
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
09/20/2025, 3:07 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840637088
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823547244
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822448611
Celigo AI
09/20/2025, 3:07 AMCeligo AI
09/20/2025, 3:13 AM