Edgar Valdes
06/20/2023, 8:06 PMvar accountField = form.addField({
id: 'accounts',
type: ui.FieldType.SELECT,
source: 'account',
label: 'Account'
});
How can I filter the source of this field, to show only "Bank" accounts?
I know there is a filter option, but I can't find it in the docs.Anthony OConnor
06/20/2023, 8:12 PMcustpage_accounts
2. I don't think there IS a filter option, which would explain why its not in the docs.
3. to do what you want I think you'd need to search for accounts filtered by accttype = Bank, and then add the name/id pairs using a loop and accountField.addSelectOption()
Edgar Valdes
06/23/2023, 6:26 PM