Integration Introduction

Step 1 – Include Files

HTML – Include CSS

<head>
    <link rel="stylesheet" type="text/css" href="https://trial.serviceobjects.com/Resources/AC/CSS/ACStyle.css" />
    .
    .
    .
</head>

HTML – Include JavaScript

<body>
    <script type="text/javascript" src="https://trial.serviceobjects.com/Resources/AC/JS/ACScriptV1.04.js"></script>
    .
    .
    .

Step 2 – Map Fields

Input Fields to Map

<div id="sPlace" class="AddressInputBlock">
    <div id="lPlace2" class="AddressLabels">Place</div>
    <input id="iPlace" type="text" class="AddressInputs" />
</div>

Field Mapping

<script>
     var fields = [
                { element: "iPlace", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE }
             ];
</script>

Step 3 – Set Options

Setting Options

var fields = [
                { element: "iPlace", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE }
             ];
 
 
var CustomKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
var options = { key: CustomKey, DoPlace: true, SearchType: "Locality" };
var DOTSGlobalAddressComplete = new so.Address(fields, options);