How to post in the activity section of the service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 10:13 PM
When posting in the activity section of the service portal, by default it will be posted immediately when you press the enter button.
How can I prevent it from being posted immediately when I press the enter button?
(It's frustrating that the enter button I pressed to break the line will be posted immediately.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 10:25 PM
Hi @MM0618,
To disable the Enter button behavior, you need to clone the Ticket-conversation widget and change the behavior of Enter button.
You can follow below process to disable this.
- Find the out of box Service Portal widget "Ticket Conversations"
- Clone the widget
- In the newly cloned widget, go to the Client Controller section
- Find line 416:
if (event.keyCode === 13 && !event.shiftKey) { - Edit the line to:
if (!event.keyCode && !event.shiftKey) { - Save the widget
- Replace the "Ticket Conversations" with the newly cloned and edited widget.
Please mark helpful and accept the solution, if it helps.
Regards,
Sonu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 04:52 PM
Hi Sonu,
Are you able to provide more information about how your replace the "Ticket Conversations" with the edited widget please?
Regards