When completing a request and adding the delivery address/special instructions to the sc_request form, the delivery address is not filled in.

Steps to Reproduce

  1. Enable two-step checkout.
  2. Open an item and click Order Now.
  3. On the two-step checkout screen, leave the auto-populated delivery address field and click Checkout.
    On the request, note that the delivery address is not populated.


NOTE: The workaround described here should only be used until an upgrade is performed to a version listed in the Fixed In section below.

To make a copy of the wrong UI Macro:

  1. Navigate to System UI > UI Macros and create a new macro, name it sc_cart_view_requested_for_2.
  2. Search and open the UI Macro sc_cart_view_requested_for.
  3. Copy all the script in this record and paste it into the new UI macro sc_cart_view_requested_for_2.


To fix the new UI Macro:

Inside, and at the end of the block starting with <j:if test="${jvar_sc_shipping_address == 'true'}">, place the following code:

<j2:set var="jvar_ref_delivery_address" value="${jvar_cart.getDeliveryAddress()}" />
<g2:evaluate jelly="true">
   if (jelly.jvar_ref_cart_id.length > 0) {
      var rec = new GlideRecord('sc_cart');
      rec.addQuery('sys_id', jelly.jvar_ref_cart_id);
      while (rec.next()) {
         if (!rec.manual_address || rec.manual_address == 'false') {
            rec.delivery_address = jelly.jvar_ref_delivery_address;


Enable the new UI macro:

  1. Navigate to Service Catalog > Maintain Cart Layouts.
  2. Open the record Cart Preview Screen (Two Step).
  3. In the Widget Macros related list, click Edit.
  4. On the left, sind  sc_cart_view_requested_for_2 and move it to the column on the right.
  5. Click Save.
  6. Back to the related list, give the same order number to the newly added macro (should be 600) as sc_cart_view_requested_for.


Make the old UI Macro inactive:

  1. In the Widget Macros related list, click the information icon next to sc_cart_view_requested_for.
  2. Clear the Active option.
  3. Click Save.

Related Problem: PRB608438

Seen In

Fuji Patch 1
Fuji Patch 11
Fuji Patch 12 Hot Fix 1
Fuji Patch 4 Hot Fix 4
Fuji Patch 8
Geneva Patch 5

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-07-11 06:34:47