Set dynamically the enums array of a field in a smart action

Expected behavior

I want to set dynamically the enums array of a field in a smart action. That means that this list will change depending on the record or the related record selected.

Actual behavior

I must pass a fix enums array to the field enums property:
ex:

{
  name: 'Ajouter un document',
  type: 'single',
  fields: [{
    field: 'Type du document',
    enums: ['type1', 'type2'],
    type: 'Enum'
  }]
}

Hi @guillaumejauffret :wave: thank you for using Forest Admin.
We don’t support dynamic enums yet, I add a entry on our product board.

1 Like