ANS-1143 · SUITESCRIPT DEVELOPMENT
Understanding ‘Hide in SuiteBundle’ Limitations with NetSuite Client Scripts
NetSuite's 'Hide in SuiteBundle' feature is specifically designed for certain script types and does not extend its functionality to client scripts, impacting deployment strategies.
Short answer
The 'Hide in SuiteBundle' option in NetSuite is not compatible with client scripts. This feature is intended for other script types, meaning client scripts will always be visible within a SuiteBundle regardless of this setting. Developers should plan their deployment and visibility strategies accordingly, as this option will not conceal client-side code.
Scenario
NetSuite administrators or developers may encounter situations where they attempt to use the 'Hide in SuiteBundle' option for client scripts, expecting the script to be concealed within the bundle. However, despite enabling this setting, the client script remains visible after bundling. This leads to confusion regarding the intended functionality of the 'Hide in SuiteBundle' feature.
Solution
It is important to understand that the 'Hide in SuiteBundle' functionality in NetSuite is not designed to apply to client scripts. This feature is specifically intended for other script types, and therefore, enabling it for a client script will not result in the script being hidden within a SuiteBundle. Developers should be aware of this limitation when planning their SuiteBundle deployments and managing the visibility of their client-side customizations.
Expert NetSuite Support
Need help with this NetSuite issue?
SuiteScript Development consulting and configuration support
