scottvonduhn
09/08/2021, 2:51 PMeminero
09/08/2021, 3:02 PMcontext.form.getSublist('salesteam').getField('contribution').updateDisplayType({ displayType: serverWidget.FieldDisplayType.HIDDEN });
instead of using .HIDDEN, you can try using .NORMAL. Let me know if this works.
I would try using this as well:
sublist.addField
Probably if you set the internalid that already exist, it just add the desired fields as if you were adding/applying to the form,scottvonduhn
09/08/2021, 3:06 PMscottvonduhn
09/08/2021, 3:55 PMsublist.addField
will only let me specify field ids that start with custpage
(anything else throws an error), which means I can't specify the id of existing sublist fields. I'll try to see if I can get the fields and modify the display type instead.scottvonduhn
09/08/2021, 4:06 PMsublist.getField('my_custom_field_id')
then try to call .updateDisplayType({ displayType: serverWidget.FieldDisplayType.NORMAL })
, I get ReferenceError: Empty invocation target!
eminero
09/08/2021, 4:19 PMscottvonduhn
09/08/2021, 5:17 PMpriceinterval
. I added two new custom fields to Subscription Line record type, but the priceinterval sublist on Subscription shows a fixed set of fields in Create/Edit mode, and new custom fields added to Subscription Line don't display there.
Even trying to modify the Subscription form doesn't help, the Line sublist fields can't be changed.
In view mode, you can customize the sublist, so the custom fields can be shown. Which is frustrating since as soon as the user clicks Edit, those fields disappear.