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

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
Mega 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
Mega Sage

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