Populate an alert when Agent tries to enter in additional comments field

Janu sree
Tera Guru

Hi All,

 

Trying to populate an alert as soon the Agent start typing(even a single letter)in Additional comments field , an alert should come up saying "Please be aware  notification will triggers to requestor". 

Ps: This alert should come only once at the start.

 

Please suggest.

1 ACCEPTED SOLUTION

Siva Jyothi M
Mega Sage

Hi @Janu sree,

 

Can you try this on-change client script on Additional Comments.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
if (newValue.length == 1) { 
	alert('Please be aware that this will be shared to the requester');
   }
   
}

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi M.

View solution in original post

6 REPLIES 6

Hello Atulya,

 

We are trying populate the alert in Workspace/Native view

 

Thanks

Siva Jyothi M
Mega Sage

Hi @Janu sree,

 

Can you try this on-change client script on Additional Comments.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
if (newValue.length == 1) { 
	alert('Please be aware that this will be shared to the requester');
   }
   
}

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi M.