Forest Admin Smart Action field multiline (Textarea)

Viewed 376

Is there any solution to use an input value of type Textarea on Forest Admin Smart Action form ? I would like render a field like this :

enter image description here

Documentation said there is only Boolean, Date, Dateonly, Enum, File, Number, String types but use a multiline is a common use case, isn't it ?

Thanks for your help

1 Answers

You can use the widget parameter when configuring your input fields on your Smart Action. Here is an example:

collection('customers', {
  actions: [{
    name: 'Charge credit card',
    fields: [{
      field: 'description',
      type: 'String',
      widget: 'text area', // <-- set the widget text area
      }],
  }]

enter image description here

Related