# Rich text editor in smart action field

**URL:** <https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [May 27, 2021, 12:44pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566 "2021-05-27T12:44:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)\
**Post date:** [May 27, 2021, 12:44pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/1 "2021-05-27T12:44:34Z")

</div>

Is it possible to display a rich text editor in the field of a smart action?

Best regards  
Guillaume

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [May 27, 2021, 1:05pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/2 "2021-05-27T13:05:34Z")

</div>

Hello @Guiguijo ! 👋 Welcome to our community 🎉 🎊

You can find the [documentation related to the smart action inputs values](https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions#opening-a-form-to-ask-input-values).

Unfortunately, with only support the following list bellow for now.

**Supported field types:** `Boolean`, `Date`, `Dateonly`, `Enum`, `File`, `Number`, `String`, `['Enum']`, `['Number']`, `['String']`

So we cannot display a Rich Text Editor to edit **String** today.

Kind regards,  
Morgan.

---

<div class="post-metadata">

**Author:** ![Guiguijo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guiguijo/32/2445_2.png) [@Guiguijo](https://community.forestadmin.com/u/Guiguijo)\
**Post date:** [May 27, 2021, 1:41pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/3 "2021-05-27T13:41:36Z")

</div>

Hi @morganperre ,

Thank you for your response.  
It’s what I thought. That would be great to have this features 😉

Best regards  
Guillaume

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [May 27, 2021, 1:46pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/4 "2021-05-27T13:46:00Z")

</div>

Hi again,

I’ll push a Suggestion to our [product board](https://portal.productboard.com/forestadmin/1-forest-admin-product-roadmap). 🙂

Have a nice day.

Best regards  
Morgan

---

<div class="post-metadata">

**Author:** ![Quentin\_Somerville](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/quentin_somerville/32/3756_2.png) [@Quentin\_Somerville](https://community.forestadmin.com/u/Quentin_Somerville)\
**Post date:** [December 16, 2021, 5:50pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/5 "2021-12-16T17:50:06Z")

</div>

Hi @morganperre

Do you have any news about this feature ?  
I need to develop a smart action with a pre-loaded text for an email and I am a little bit stuck 🙂

Have a nice day

Quentin

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [December 17, 2021, 8:31am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/6 "2021-12-17T08:31:25Z")

</div>

Hey @Quentin_Somerville,

We have still nothing on this topic on the near future (Q1 2022). Feature request are used to be grouped around the same topic (3-4 bullet points around the same subject) before taking any actions. (_I resent the suggestion to product board_)

> [@Quentin\_Somerville](#):
>
> I need to develop a smart action with a pre-loaded text for an email

In your case the [current state of Smart Actions dynamic forms with hooks](https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions/use-a-smart-action-form#making-a-form-dynamic-with-hooks) seems to be adequate ? You can totally work with string for an email.

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![Quentin\_Somerville](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/quentin_somerville/32/3756_2.png) [@Quentin\_Somerville](https://community.forestadmin.com/u/Quentin_Somerville)\
**Post date:** [December 17, 2021, 8:51am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/7 "2021-12-17T08:51:44Z")

</div>

Hi @morganperre  
Thank you for your quick response !  
The problem is that the email are on several lines and the text file is only on 1 line like in this screenshot

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/d1adcc8363a00da9bbab7ecd1310af44486d7421.png).  
Is it possible to display the smart action field in several lines ?

Thank you,  
Quentin

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [December 17, 2021, 8:58am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/8 "2021-12-17T08:58:06Z")

</div>

Thanks for sharing your use case ! It’s a useful insight.

Indeed today it’s not possible… I’ll add this to the Feature request, I hope it will speed up things concerning this topic !

Thanks again.

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![louis](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/louis/32/4_2.png) [@louis](https://community.forestadmin.com/u/louis)\
**Post date:** [January 12, 2022, 8:03am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/9 "2022-01-12T08:03:58Z")

</div>

Hi @Quentin_Somerville 👋 ,

Have you tried to apply the widget text area to your “Contenu” field?

Something like this should work:

```javascript
  actions: [{
    name: 'Envoyer un email',
    fields: [{
      field: 'Contenu',
      type: 'String',
      widget: 'text area', // <-- set the widget text area
      }],
  }]

```

---

<div class="post-metadata">

**Author:** ![Quentin\_Somerville](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/quentin_somerville/32/3756_2.png) [@Quentin\_Somerville](https://community.forestadmin.com/u/Quentin_Somerville)\
**Post date:** [January 12, 2022, 11:09am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/10 "2022-01-12T11:09:50Z")

</div>

Hi @louis  
Yes it’s better !  
It works for the SMS but it is still not perfect for an html email.  
Is there a widget ‘rich text’ ? I didn’t find it in the doc.

Thanks

Quentin

---

<div class="post-metadata">

**Author:** ![louis](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/louis/32/4_2.png) [@louis](https://community.forestadmin.com/u/louis)\
**Post date:** [January 13, 2022, 7:50am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/11 "2022-01-13T07:50:10Z")

</div>

Unfortunately, rich text widget is not available yet for smart action form fields ☹

---

<div class="post-metadata">

**Author:** ![Justin\_Martin](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/justin_martin/32/1028_2.png) [@Justin\_Martin](https://community.forestadmin.com/u/Justin_Martin)\
**Post date:** [June 10, 2022, 7:41am UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/12 "2022-06-10T07:41:23Z")

</div>

Any news about this ?

---

<div class="post-metadata">

**Author:** ![Nelson](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nelson/32/3746_2.png) [@Nelson](https://community.forestadmin.com/u/Nelson)\
**Post date:** [April 21, 2023, 12:32pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/13 "2023-04-21T12:32:40Z")

</div>

Would indeed be great to have that in the future 👍

---

<div class="post-metadata">

**Author:** ![anon7311026](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@anon7311026](https://community.forestadmin.com/u/anon7311026)\
**Post date:** [April 24, 2023, 1:40pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/14 "2023-04-24T13:40:38Z")

</div>

Thanks for reaching out,

The feature is part of the product improvment but as it is not scheduled yet, I cannot provide an estimated date.

Regards,

@anon7311026

---

<div class="post-metadata">

**Author:** ![kll](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kll/32/7091_2.png) [@kll](https://community.forestadmin.com/u/kll)\
**Post date:** [September 22, 2024, 5:56pm UTC](https://community.forestadmin.com/t/rich-text-editor-in-smart-action-field/2566/15 "2024-09-22T17:56:50Z")

</div>

This was the first hit on my SE so I’m doing a bit of grave digging to say that it is now indeed possible, see these docs: [Widgets in Forms | Node.js Developer Guide (forestadmin.com)](https://docs.forestadmin.com/developer-guide-agents-nodejs/agent-customization/actions/forms-widgets#rich-text-widget)
