Dhananjay Donthula
03/19/2020, 1:17 PMvar createCustomer = record.create({
type: record.Type.CUSTOMER,
isDynamic: false,
defaultValue: null
});
createCustomer.setValue({
fieldId: 'email',
value: context.email
});
createCustomer.setValue({
fieldId: 'customform',
value: "6"
});
battk
03/19/2020, 1:25 PMbattk
03/19/2020, 1:25 PMMTNathan
03/19/2020, 1:30 PMcustomform
instead of setValue:
var createCustomer = record.create({
type: record.Type.CUSTOMER,
isDynamic: false,
defaultValue: {customform: 6}
});
Assuming, of course, that 6 is a valid value for that field on Customer records.Dhananjay Donthula
03/19/2020, 1:38 PMDhananjay Donthula
03/19/2020, 1:43 PMDhananjay Donthula
03/19/2020, 1:44 PMDhananjay Donthula
03/19/2020, 1:44 PM[{"value":"5","text":"XXX- Coaching Customer"},{"value":"6","text":"XXX- Data Services Customer"},{"value":"7","text":"XXXIntercompany Customer Form"},{"value":"-2","text":"Standard Customer Form"},{"value":"-8","text":"Standard Lead Form"}]
battk
03/19/2020, 1:47 PMbattk
03/19/2020, 1:48 PMMTNathan
03/19/2020, 1:48 PMStore Form With Record
on the form setup page.battk
03/19/2020, 1:48 PMDhananjay Donthula
03/19/2020, 2:01 PMDhananjay Donthula
03/19/2020, 2:06 PMDhananjay Donthula
03/19/2020, 2:06 PMMTNathan
03/19/2020, 2:09 PMStore Form With Record
- if that's unchecked, it won't necessarily use that form next time you load the record. I believe it uses the preferred form the for record type but I don't know for certain; in our account I always make sure to check that box.battk
03/19/2020, 2:09 PMDhananjay Donthula
03/19/2020, 2:17 PMDhananjay Donthula
03/19/2020, 2:20 PMDhananjay Donthula
03/19/2020, 2:23 PMDhananjay Donthula
03/19/2020, 2:26 PMcustform_4_4487041_304
MTNathan
03/19/2020, 2:31 PM'6'
works but not 6
? Oh NetSuite...Dhananjay Donthula
03/19/2020, 2:33 PM'6'
is also not working for me.Dhananjay Donthula
03/19/2020, 2:34 PMMTNathan
03/19/2020, 2:40 PMcf
parameter when the record loads with a different form?Dhananjay Donthula
03/19/2020, 3:17 PMDhananjay Donthula
03/19/2020, 3:18 PMcf
parameter. The record I modified via UI is still showing correct form.Dhananjay Donthula
03/19/2020, 3:19 PMMTNathan
03/19/2020, 3:34 PMDhananjay Donthula
03/19/2020, 3:44 PMDhananjay Donthula
03/19/2020, 3:44 PMMTNathan
03/19/2020, 3:49 PMDhananjay Donthula
03/20/2020, 4:00 PM