The CreatorCon Call for Content is officially open! Get started here.

How to post in the activity section of the service portal

MM0618
Tera Contributor

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.)

2 REPLIES 2

Sonu Gupta
Tera Expert

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.

 

  1. Find the out of box Service Portal widget "Ticket Conversations"
  2. Clone the widget
  3. In the newly cloned widget, go to the Client Controller section
  4.  Find line 416: 
    if (event.keyCode === 13 && !event.shiftKey) { 
  5. Edit the line to: 
    if (!event.keyCode && !event.shiftKey) {
  6. Save the widget
  7. Replace the "Ticket Conversations" with the newly cloned and edited widget.

 

Please mark helpful and accept the solution, if it helps.

 

Regards,

Sonu

Hi Sonu,

 

Are you able to provide more information about how your replace the "Ticket Conversations" with the edited widget please?

 

Regards