Anyone have insight into the rules governing the s...
# suitescript
m
Anyone have insight into the rules governing the showing/hiding of custom transaction line fields and accessing those fields via SuiteScript? I'm in a predicament where hiding/showing a custom column directly affects my ability to see that value in a script and this feels very wrong
b
start the field off as normal, then hide it afterwards
a field that starts off hidden is missing some html elements that suitescript uses to find the field
m
Do you mean to hide it using the native field configuration or hide with suitescript? This field is configured with a display type of hidden on the configuration itself.
m
@Matt Wertheim The most reliable way I've found to do this is to set the field to normal display on the field configuration and on the form, but set the label on any form that you want it hidden from to an empty string. For whatever reason, that hides the column field from the form but still allows scripts to access/manipulate it. There may be other (potentially better) ways but that's been a solid method for me.
m
Thank you @MTNathan. That makes sense to me
👍 1