How to create a button on a catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2022 07:57 AM
Dear SN community,
I am new to the team to build up our catalog items for our service catalog.
I have an item with a few input fields and dropdown boxes, but I want to have a button included.
When the button is pressed I want to trigger a serverside "Ajax script include" and then fill an input field with a value that gets returned from the AJAX-Call.
But how can I create a simple button and trigger an action in such a catalog item. I can not find a variable type in the list that souds like button or widget.
There is nothing similar.
I found many articles on google that describe that there should be a "macro" variable type, but I do not have this.
Many thanks
Best regards
Eckhard
MID buildstamp: rome-06-23-2021__patch7a-03-08-2022_04-05-2022_2202
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2022 08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2022 08:12 AM
Many thanks,
this means that I have to create my own macro with my button and the action right?
Is there a kind of doumentation, because in such a macro many things need to be done like XML and controller. I haven´t expected that a simple button is that complicated.
But I will try, but maybe you have idea if there is kind of documentation / 1st steps for that.
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2022 08:18 AM
This article may help you.
https://community.servicenow.com/community?id=community_article&sys_id=9fecee65dbd0dbc01dcaf3231f9619b8
Please mark my answer correct/helpful. If it resolved your issue