Is it possible to display a rich text editor in the field of a smart action?
Best regards
Guillaume
Is it possible to display a rich text editor in the field of a smart action?
Best regards
Guillaume
Hello @Guiguijo ! Welcome to our community
You can find the documentation related to the smart action inputs 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.
Hi @morganperre ,
Thank you for your response.
It’s what I thought. That would be great to have this features
Best regards
Guillaume
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
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)
In your case the current state of Smart Actions dynamic forms with hooks seems to be adequate ? You can totally work with string for an email.
Kind regards,
Morgan
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
Thank you,
Quentin
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
Hi @Quentin_Somerville ,
Have you tried to apply the widget text area to your “Contenu” field?
Something like this should work:
actions: [{
name: 'Envoyer un email',
fields: [{
field: 'Contenu',
type: 'String',
widget: 'text area', // <-- set the widget text area
}],
}]
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
Unfortunately, rich text widget is not available yet for smart action form fields
Any news about this ?
Would indeed be great to have that in the future
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,
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)