Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Submit button on Catalog Item

samadam
Kilo Sage

I want to add a submit button to one catalog item and not display Order Item. I created a UI macro with code:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<div class="orderButton">
<a class="request_catalog_button addtlBtn" onClick="orderNow();">Submit</a>
</div>
</j:jelly>

I added a variable to the item. I checked the following boxes and and unchecked Use cart layout : The submit button shows up but would not do anything. If I uncheck No Order and No Order Now. The Order Now button shows up. If I click the Submit button now it works. How can I get the Submit button working without these Order button display?

  • Omit price in cart
  • No cart
  • No order
  • No order now
  • No proceed checkout
  • No quantity

 

5 REPLIES 5

justin_stigall
Kilo Contributor

Were you ever able to get this working? I have the same requirement now and I can't get it to work