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

Hi Alyssa,



I have implemented the UI Macro then used Sara code and the new variable into our Record Producer.


So far, the button is sitting on the bottom of our Record Producer but the functional part is not working.


Below is our UI Macro:



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




We want to lead the users to a new UI page instead of the target table. The new record should be inserted as well.



Where should we implement the onclick function?


You saved me a headache. Thank you!