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 as UI macro

samadam
Kilo 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

AnirudhKumar
Mega Sage

May I ask where are you seeing the Submit button?

Also, don't we have a Submit button on catalog forms already?

samadam
Kilo Sage

I added a custom field and calling the ui macro. I want to display Submit instead of order

 

I'm not sure what's the complete requirement, but there's an easier way to display Submit button instead of Order.

Open your catalog item form (back-end) -> Click Portal Settings tab -> Set Request method field to Submit -> Hit Save

samadam
Kilo Sage

That only works in service portal, I have service management page. Tried that no luck