Portal Button
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 08:33 PM
How Can I add a Reject button in My Form widget?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 09:12 PM
HTML:
<button ng-click="c.uiAction('decline')" class="btn btn-default">
Decline
</button>
Serverside:
// Get table & sys_id
data.table = input.table;
data.sys_id = input.sys_id;
if (input && input.action) {
var action = input.action;
if(action == 'decline'){
var qu = new GlideRecord("sn_customerservice_quotes");
qu.addQuery('u_buy_plan_id',data.sys_id);
while(qu.next()){
qu.setValue('state',2);
}
gs.addInfoMessage("Quote is Declined !");
}
I am not getting how to add it in client side.
Plz help.