Auto Fill Shipping Address from Billing Address on a New Form in SharePoint 2013

I have a new form on SharePoint that has a few fields:

Billing Address 1 (Single Line of Text)

Billing Address 2 (Single Line of Text)

Billing Address City (Single Line of Text)

Billing Address State (Drop Down Menu)

Billing Address Zip (Single Line of Text)

Shipping Address is the Same (Yes/No Check Box)

Shipping Address 1 (Single Line of Text)

Shipping Address 2 (Single Line of Text)

Shipping Address City (Single Line of Text)

Shipping Address State (Drop Down Menu)

Shipping Address Zip (Single Line of Text)

The object is that a user would fill in the Billing Address Fields, then click the "Shipping Address is the Same" check box and the Shipping Address Fields would auto fill with the Billing Address Fields.

I've tried using a CEWP and editing the form file in SharePoint Designer 2013. I just don't know how to make this Dynamic auto fill work! Any help is greatly appreciated!!!!

February 7th, 2014 5:51pm

Use a custom web part

Design the form controls and in "Shipping Address is the Same" check box check event or button click, copy the same data into a label form contains the same fields but in form of labels instead of textbox and dropdownlist.

try this solution and let me know.

Free Windows Admin Tool Kit Click here and download it now
February 9th, 2014 12:37pm

Hi Haley,

I would suggest you to do it in InfoPath Form. It will be very easy . If you are looking forward to do it in Jquery/Javascript , Please refer below Javascript :

 $("input[title$='CheckBoxFieldName']").change(function(){
 if($("input[title$='CheckBoxFieldName']").is(':checked'))
{
if($("select[title = 'ShippingAddress']").val()!="")

{
$("select[title = 'ShippingAddress']").val() = $("select[title = 'BillingAddress']").val();

}
}

}

Thanks!!

February 10th, 2014 5:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics