Custom field related to a child record should be hidden from user on the parent record but it should be still available for scripting purposes at the same time.
The following steps allow to hide a field from users on a parent record sublist but make it accessible by SuiteScript.
It requires already created parent and child records (see Understanding Parent - Child Record Relationships page for more details).
- Customization > Lists, Records, & Fields > Record Types > select "Child record"
- Click on the name of field in order to hide in Fields sublist
- Set "Show In List" = T
- In Display subtab set Display Type = Hidden
Using the steps above the custom field will now be accessible e.g. by the following SuiteScript code example but the column will remain hidden for users in UI:
var parentRecord = nlapiLoadRecord('customrecord_parent')var hiddenField = parentRecord.getLineItemValue( 'recmachcustrecord_parent', 'custrecord_hidden_field');