How to add a dropdown/selectbox to service portal approval record

Bruler1230
Tera Expert

Hello,

I have a request to add a dropdown/selectbox to the service portal approval record page. use case would be when an approver is approving a request, they would also like to have a dropdown that they can pick an option. For example, the approver could select from the dropdown "Go do this work" or "put this in the backlog" and then select Approve. Any ideas on this? or other solutions?

Thanks.

11 REPLIES 11

Mike Patel
Tera Sage

You can create custom field on approval table with dropdown and show that on portal widget. Also update the script that updates state on portal widget.

Thanks for your response. If i created this field on the approval table, do you have any examples of how i could add this into a widget on the service portal?

If i put a dropdown on the "approval info" widget, how would i take that value chosen from the dropdown and do something with it? For example, whatever is chosen would get copied as a comment on the RITM, or something like that. Below is a script that would put a dropdown in the widget.

 

<select type="text" id="mySelect" class="dropdown">

 
  <option value="Do something" selected>None</option>

 
  <option value="No action">Admin</option>

 
  <option value="backlog">User</option>

 
</select>

 

thanks

Bruler1230
Tera Expert

If i put a dropdown on the "approval info" widget, how would i take that value chosen from the dropdown and do something with it? For example, whatever is chosen would get copied as a comment on the RITM, or something like that. Below is a script that would put a dropdown in the widget.

<select type="text" id="mySelect" class="dropdown">

 
  <option value="Do something" selected>None</option>

 
  <option value="No action">Admin</option>

 
  <option value="backlog">User</option>

 
</select>

 

thanks