I am trying to disable a line item field based on ...
# suitescript
p
I am trying to disable a line item field based on a check box that is also on the line item. If the check box is checked a line item field is enabled - if it is not checked or is checked then unchecked - it is disabled. I have this working on 1 line but it the user goes to the next line and does the opposite all of the other lines follow the logic behind that last selection. So if on line 1 they did not check the box, field is disabled. On the next line if they check the box the field is enabled but then the field in the line above is also enabled. I am using nlapiSetLineItemDisabled to accomplish this in a client script. What would be the way to achieve this and can this be achieved?
b
inline editor type sublist fields are shared among the column
there is one field/column for every row
you disable a field on one row, it disables for all rows