Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Submit button as UI macro

samadam
Mega Sage

I have a Submit button using this UI macro but doesn't work when clicked on the button. Any suggestions on how to fix this? Same code works for other catalog items.

 

<?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>

5 REPLIES 5

Have you tried using the Cart API? Have your UI Macro execute the Cart API, it should raise the request