In NetSuite WMS, how can I hide or lock the UOM se...
# ask-stanley-ai
j
In NetSuite WMS, how can I hide or lock the UOM selection dropdown on the picking screen when entering quantity?
c
AI generated answer (using internal Slack threads):
In order to hide or lock the UOM selection dropdown on the picking screen when entering quantity in NetSuite WMS, you would need to use scripting. You can use a User Event Script's beforeLoad function to get the UOM field and then update its display type to be either hidden or disabled. Here is a sample code snippet that demonstrates how you can achieve this:
Copy code
javascript
function beforeLoad(context) {
    if (context.type !== context.UserEventType.CREATE)
        return;

    var form = context.form;
    var uomField = form.getField({
        id: 'uom'
    });

    // To hide the field
    uomField.updateDisplayType({
        displayType: 'hidden'
    });

    // Or to disable the field
    uomField.updateDisplayType({
        displayType: 'disabled'
    });
}
Please note that this is a generic example and you might need to adjust the field id and context type based on your specific requirements. ****** 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.81095
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81050545
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8090325
Please provide your feedback on this answer.
Thank you for your feedback