Hello Guys, Can we source Posting Period on Form? ...
# suitescript
a
Hello Guys, Can we source Posting Period on Form? I am trying below code but not able to source. var postingPeriod = revenueRecognitionJE.addField({ id: 'custpage_postingperiod', type: serverWidget.FieldType.SELECT, label: 'Posting Period', source: 'postingperiod' }); Any suggestion?
c
I daren’t ask why 😂
a
😄
b
make the field in the ui as a custom field
the options for the
List/Record
field are the same options available for the source parameter
sometime you can get lucky and guess the script id text
but you can always just use the internal id of the select option for the
List/Record
field
a
@battk I am adding fields on Suitelet.
b
The List/Record options used while creating custom fields are the same options available to be used in the source parameter
a
Okay thanks @battk