Associating Custom Code (Client SuiteScript) Files With Custom Forms

If the Client SuiteScript feature is enabled, the Custom Code subtab is available on custom entry and transaction forms. On this subtab, you can define existing client SuiteScript files to be used with the form. When the script’s executing function is called, the actions defined within the script (and any built-in NetSuite actions for that… Continue reading Associating Custom Code (Client SuiteScript) Files With Custom Forms

Deploy Forms from source account to target account

If a user needs to deploy Entry forms and transaction forms from one account to another, it may result in a ‘Time out’ error due to the bulk data, such as forms containing lists, fields, field groups, and sublists. In such cases, the only solution is to deploy the forms individually. However, the way to… Continue reading Deploy Forms from source account to target account

Resolve error ‘hbspt is not defined’ while embedding hubspot script with Suitecommerce

Scenario While using code given below, throwing error ‘hbspt is not defined’. <script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/embed/v2.js”></script> <script>   hbspt.forms.create({     region: “na1”,     portalId: “23130323”,     formId: “22b95edc-a15c-4996-af4c-d32d6650a3a5”   }); </script> solution: Change the script to the below format. <script>     (() => {       const script = document.createElement(“script”);       script.setAttribute(“type”, “text/javascript”);       script.src =… Continue reading Resolve error ‘hbspt is not defined’ while embedding hubspot script with Suitecommerce

Error “ReferenceError: hbspt is not defined” with embed code for SCA form

Scenario: When we want to embed a script to add a form on the SCA website to connect with hubspot, Error “ReferenceError: hbspt is not defined” is showing in console. <script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/embed/v2.js“></script><script>  hbspt.forms.create({    region: “na1”,    portalId: “23130323”,    formId: “22b95edc-a15c-4996-af4c-d32d6650a3a5”  });</script> Solution: Loading the script dynamically will solve the issue. Use… Continue reading Error “ReferenceError: hbspt is not defined” with embed code for SCA form

Create Custom Record as a Child of Customer Record and Display it as a Sublist of Customer Record

This is possible by using combination of Custom Subtab and Custom Record. The Custom Subtab will be on the same level as Relationships subtab. It can contain some single fields. The Custom Record will show a custom list of information and it will be visible under this new subtab as well. Following is the procedure how to establish… Continue reading Create Custom Record as a Child of Customer Record and Display it as a Sublist of Customer Record

How to restrict a custom opportunity form for a specific role?

In order to perform the steps below, use the Administrator role. Navigate to Setup > Users/Roles > Manage Roles Click Edit/Customize by the Role for which the custom form will be restricted Click Forms tab Click Transaction subtab Find the forms with a Opportunity Type Preferred: Enter Checkmark by the form you want to restrict for this Role Enabled: Remove Checkmark for other Opportunity forms Click Save

Dropship Purchase Order Form

For making the Dropship purchase order form preferred, we had to do the following Go to Setup –> Accounting –> Accounting preferences, Click the Order management option at the top. In it under the Drop shipments and Special Order settings, there is an option to set the form for Dropship PO. When a Dropship purchase… Continue reading Dropship Purchase Order Form