Dynamic type select in keystonejs model
You can try making a function from the options:
function getAudiences() { return ['a', 'b', 'c'];}Compliance.add({ title: { type: Types.Text, required: true, initial: true, index: true }, url: { type: Types.Url, required: true, initial: true }, position: { type: Types.Number, initial: true }, audience: { type: Types.Select, many: true, initial: true, options: getAudiences() }});
Result as below: