Ok, found the solution. There is a field customform that can be set when storing a record using the N/record module. The only trick is that this field needs to be set before other fields, like subsidiary, because setting the form resets the other fields. Thanks.