How do I add a cancel button to a catalog item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2009 10:47 AM
I'm trying to find out how I can have a cancel button added to a form for a catalog item that I used a record producer for. The concept is that when a customer realizes they do not wish to order the item, they can click cancel and it will return them to the service catalog.
Below are the comments from an open Incident I have with CS.
Comments:
--------------------------------------------------------------------------------
2009-05-11 16:51:55 - Marc Guy Additional Comments
Hi Roy, the record producer uses the UI Macro called catalog_item, which in turn uses Jelly to retrieve which record producer is being used etc and what to show on the page.
I had a quick browse to that UI macro and saw something referenced which might be getting those buttons called "producer_buttons.xml" in the script, however I'm not familiar with Jelly
However, that might be a red herring, if your familiar with Jelly at all, take a look at the page, otherwise one of the experts on the forums might have done something similar to that with a cancel button so I would suggest asking on there. If it's something you really would like and there's no help on the forums, maybe we can get Professional Services person to take a look.
--------------------------------------------------------------------------------
2009-05-11 10:38:14 - Roy Simmons Additional Comments
I have created a Catalog Item with the Record Producer called Small Form Lightweight Laptop. The form that is produced has a Submit button at the bottom of the page. I would like to add a Cancel button that would return them to another page instead of placing the request. Can this be done?
Ref:MSG0347113
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2009 05:25 PM
You can accomplish this by making a small modification to the 'catalog_item' UI macro.
Find the following line in the UI macro...
<g2:inline template="producer_buttons.xml"/>
Then paste this line of code directly below it...
<button onclick="document.back_form.submit();">Cancel</button>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2014 11:00 PM
Hi Mark ! I'm just wondering if it is possible to have an ADD button which will fetch the values from variables and display in the form of table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2015 09:15 PM
Mark,
Your solution will help us solve a request made by one of our customers - giving someone the ability to cancel their catalog requests. Another customer has asked if the Cancel button could be made visible only to an admin or a person with incident_mgmt role so they would have to call the Service Desk to cancel the request. Do you know of a way to do this?
Thanks,
Larry Lesnett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2009 03:46 AM
Thank you Mark! That is exactly what I was looking for. -Roy