Approval widgets saving comments more then once
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2018 12:52 AM
Hi All,
We had a requirement of adding comments for the approval being rejected, on the Approval widget on service portal.
I came up with adding a textbox, on the widget for every approval on the form. This makes the reject button disable, until there is some context added in the textbox and you need to add some text to reject the comments.
I am passing the comments then with the same function that is passing the state of the approval, reject or approved.
Everything is working fine, except, the comments are being saved around 6 times minimum for a single reject or approve.
I am not able to figure out why this is happening, as the state is being changed only once, which would make sense as the code which looks for the approval with requested type has already been changed by the server script. But the comments keep been added. But I don't understand why the code still keeps running and calling the script.
I have attached the widget on which I have made changes. Can I request some assistance on this please, any suggestion would be appreciated?
Regards,
Vikrant Sharma
Thanks & Regards,
Vikrant Sharma
- Labels:
-
Service Portal Development
- 2,918 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2019 07:45 AM
Thank you, heikomeyn!!!
