We wanted to move the Hold field onto the main tab...
# suitescript
m
We wanted to move the Hold field onto the main tab from the financial tab on a Customer record, but seems we cannot get direct access to this field in the form customisation. Figured, a WF can simply source the hold value onto a new custom field, but we get an error saying the field cannot be set on beforeLoad for existing records. Could we script this or would it have the same WF error? Or any other way to do this?
j
in general you cannot edit values in beforeLoad for existing records
UE has the same thing
Data cannot be manipulated for records that are loaded in beforeLoad scripts. If you attempt to update a record loaded in beforeLoad, the logic is ignored.
m
Right, so it's the same error WF throws so beforeLoad & PageInit would not work.
j
pageinit should work
but of course that only applies to edit mode
m
Ah, I needed something in View mode