Widget

ankitapatnaik
Tera Contributor

I want to add a text field called "Reject Reason" below Reject button in a widget. Can you please help me with the html code for the comment field.

3 REPLIES 3

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi

can you please share the code?

 


Thanks and Regards,

Saurabh Gupta

ankitapatnaik
Tera Contributor

<div>
<!-- your widget template -->
<button type="button" class="btn btn-primary" ng-click="aprrove()">Accept</button>
<button type="button" class="btn btn-primary" ng-click="reject()">Reject</button>
<div ng-if = "ShowComments">
<div class="comment">
</div>
<button type="button" class="btn btn-primary" ng-click="submitForm()">OK</button>
</div>
</div>

ersureshbe
Giga Sage
Giga Sage

Hi, 

Pls refer below link and take as a reference and create as per your requirement.

https://www.servicenow.com/community/developer-articles/create-reopen-incident-widget-which-requires...

 

Regards,
Suresh.