This topic contains 1 reply, has 0 voices, and was last updated by pcutler 6 years, 10 months ago.

  • Author
    Posts
  • #21351

    Joshua2739

    Recently new Admin for NetSuite. I am looking for a script to make a transaction column field a certain display type on a specific transaction form.
    This is a cached copy. Click here to see the original post.

  • #21352

    pcutler

    Try something like this (not tested, could have typos):

    Code:
    function beforeLoad() {

    var sublistId = 'item';
    var fieldId = 'custcol_my_field';
    var displayType = 'hidden'; // or disabled, inline, etc.

    var field = nlapiGetNewRecord().getLineItemField(sublistId, fieldId, 1);

    // set the field's display type
    if(field) {
    field.setDisplayType(displayType);
    }
    }

You must be logged in to reply to this topic.