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

  • Author
    Posts
  • #21351 Score: 0

    Joshua2739
    • Contributions: 0
    • Level 1

    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 Score: 0

    pcutler
    • Contributions: 0
    • Level 1

    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.