Order Now or Submit Button

alexcharleswort
Tera Expert

I know this question has been asked a lot on here, and I have used a bunch of suggestions already, without success. I have had several complaints about the cart feature and was trying to add a "submit" button on the bottom of the form. I can make these buttons all day long, but I cannot seem to get them to link. I assume this is supposed to be a ui action?? so, from start to finish, does anyone have any great ideas on how to make this possible? Also, I have already weighed my option of going with record producer instead of service catalog, but I decided against it.

1 ACCEPTED SOLUTION

I have limited scripting knowledge as well so I could be wrong but I think ours is just a UI macro then the macro added to the catalog item form. The button was created during our original portal implementation with assistance from Fruition.



Below is the UI macro code we use...


<?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();">Order Now</a>


</div>


</j:jelly>



Then we added the variable to the form...


Type: Macro


Name: order_now


Macro:   "name of UI macro above"



Button as it appears on the portal...


find_real_file.png



Our ESS users are able to click this button and submit their REQs with no issues.



Sarah


View solution in original post

16 REPLIES 16

Sarah Powell
Mega Expert

We used a UI macro to add an Order Now button to the bottom of our catalog items. Have you tried that?



Sarah


I sure have. I've probably made like 8 different buttons that look awesome and it looks like I can click it, but the script behind it isn't actually linking it to the "order now" button. I've been fiddling with my own script and copy/pasting bits of script that people post on here, but they never seem to be complete or have punctuation errors in it where it keeps feeding me back an error. And I am definitely not good enough at scripting yet to be proof reading it correctly.


I have limited scripting knowledge as well so I could be wrong but I think ours is just a UI macro then the macro added to the catalog item form. The button was created during our original portal implementation with assistance from Fruition.



Below is the UI macro code we use...


<?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();">Order Now</a>


</div>


</j:jelly>



Then we added the variable to the form...


Type: Macro


Name: order_now


Macro:   "name of UI macro above"



Button as it appears on the portal...


find_real_file.png



Our ESS users are able to click this button and submit their REQs with no issues.



Sarah


That helped immensely!!! Thank you so much, Sarah!