I created a Select field on Suitelet sourcing Acco...
# suitescript
h
I created a Select field on Suitelet sourcing Accounting Period. Anyone knows if it's possible to not show the Fiscal Year and Quarter without using Search as a Source?
Copy code
var postingPeriod_field = form.addField({
      id: 'custpage_postingperiod',
      type: serverWidget.FieldType.SELECT,
      label: 'Posting Period',
      container: 'custpage_fieldgroup_invoice',
      source: 'accountingperiod'
    });
s
Are you saying you just want the display name trimmed to disclude the
FY 2018: Q1 2018:
part? There is not a simple way to do that I do not believe. You could run a search on accounting periods, loop over the results, REGEX them, then add them as select options to the field. It would no longer source from there, obviously, and its a bit much for something that adds no functionality.
h
Yes but I was hoping it's possible without using a search haha! Seems like I really have to use search. Thanks!