- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 12:21 AM
Dear community,
I'm having real challenges with "Order now" action (in our case we have configured "Request" method so for us it's "Request now") in our Service Catalog because when clicking on it for catalog items, button is not disabled while processing logic behind until redirected to next page. As result, if end user is not patient enough, they click on the button several times creating multiple request.
For any reason this is not happening with order guides, where button is automatically disabled after submission:
How can I get the same behavior of order guides in catalog items?
As a workaround I've even added a warning message after submit asking the end user to click only once, but it's not avoiding all duplicates.
Thank you in advance for your help!
JoaquÃn
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 04:42 AM
Hi Pratiksha,
Definitely you gave me a hint to find the solution of my issue. I've noticed that we had a custom version of SC Catalog Item widget and I've just moved back to the standard widget and it works as expected.
Thanks a lot for your help!
JoaquÃn

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 01:49 AM
Hello,
Refer below link,
https://hi.service-now.com/kb_view.do?sysparm_article=KB0744898
If answer is helpful mark correct!
Thanks,
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 02:03 AM
Hi Pratiksha,
Thanks for your help but I'm not looking for hidding buttons. What I need is to disable the button once it has been clicked to make sure it's only clicked once.
Regards:
JoaquÃn

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 02:49 AM
Hello,
okay..
you can do like this in the widget
HTML:
<div>
<button type="submit" ng-disabled="isDisabled" ng-click="disableButton()"> Click me to disable myself</button>
<!--button ng-disabled="true" type="button" onclick="alert('Hello world!')">Click Me!</button-->
</div>
client script
function($scope) {
/* widget controller */
var c = this;
$scope.isDisabled = false;
$scope.disableButton = function() {
alert("I am disabled");
$scope.isDisabled = true;
}
}
If answer is helpful mark correct!
Thanks
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 04:42 AM
Hi Pratiksha,
Definitely you gave me a hint to find the solution of my issue. I've noticed that we had a custom version of SC Catalog Item widget and I've just moved back to the standard widget and it works as expected.
Thanks a lot for your help!
JoaquÃn