How to create a text box that will display when clicking 'Resolve' button in Service Portal

Raphael Dizon
Mega Expert

Hello,

I have a task wherein when a user clicks the 'Resolve' button it will prompt a separate text box that requires them to enter 'Additional Comments' and it will reflect in the additional comments widget which is not located in the same widget as the 'Resolve' button. I am new to portal development so any help is much appreciated. Thank you.

find_real_file.png

Kind Regards,

Raphael

1 ACCEPTED SOLUTION

michaelmcaliste
Kilo Guru
Hi Raphael Dizon,
 
I had a similar requirement to ask for comments when someone rejected an approval request. I cloned the widget and used the $uibModal service to popup a message asking for comment. Then passed that back to the server to update the record. Does that sound like what you are after?

find_real_file.png

Regards,

Michael.

 

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information. 

View solution in original post

7 REPLIES 7

Hi Michael,

What is the name of the widget and what part in the code is the pop up of dialog box? Thank you.

 

The OOB widget was called Approval Info. I cloned it and added my code so that when the reject button was pressed it popped up with the comments box. You would need to add similar code to the Resolve button on the Incident Details widget. I have attached the updated widget code and a screenshot of the widget is bit'sw (its on the approval page).

 

find_real_file.png

Regards,

Michael.

 

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information. 

How can I call the function that I created in the client controller to the server script since the server script is the one executing the function. Sorry for the questions, I am quite new to service portal development. Thank you so much.

 

find_real_file.png

find_real_file.png