Provide reason in box in popup window populated when click on Reject button in Service Portal

Mad3
Tera Expert

Hi All,

I have custom buttons on custom widget called Accept and Reject, when click on Reject button popup window is populated.

As I don't have knowledge on Service Portal!

1. On the popup window user should provide reason to reject and the should take OK in Service Portal.

2. If reason not provided can't be submitted.

2. How to make a field on popup window to give a text in box and store in a table.

 

Sharing knowledge would help me.

Thanks in Advance!

 

Mad3_0-1675082404463.png

 

 

7 REPLIES 7

Community Alums
Not applicable

Hello @Mad3 ,

 

Instead of using alert, use Angular openModal() function on button onClick(). Create one mandatory field on that custom dialog and store its data on any table where u want.

 

Thank you!

 

Hi @Community Alums ,

Thank you for your reply!

 

Can you explain here using openModal() and creating mandatory field to store the data on table.

Community Alums
Not applicable

Hello @Mad3 ,

In ur case u need to write one more line of code in the html for label and input. And write server side script to store data of that field.

Thank you!

Hello @Community Alums ,

Thankyou for the reply!

As I am new to portal, Can toy explain in detail by writing the code in HTML and Client side with the example.

 

Thank in Advance!