Integration Introduction

Step 1 – Include Files

HTML – Include CSS

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<head>
<link rel="stylesheet" type="text/css" href="https://trial.serviceobjects.com/Resources/AC/CSS/ACStyle.css" />
.
.
.
</head>
<head> <link rel="stylesheet" type="text/css" href="https://trial.serviceobjects.com/Resources/AC/CSS/ACStyle.css" /> . . . </head>
<head>
    <link rel="stylesheet" type="text/css" href="https://trial.serviceobjects.com/Resources/AC/CSS/ACStyle.css" />
    .
    .
    .
</head>

HTML – Include JavaScript

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<body>
<script type="text/javascript" src="https://trial.serviceobjects.com/Resources/AC/JS/ACScriptV1.04.js"></script>
.
.
.
<body> <script type="text/javascript" src="https://trial.serviceobjects.com/Resources/AC/JS/ACScriptV1.04.js"></script> . . .
<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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<div id="sPlace" class="AddressInputBlock">
<div id="lPlace2" class="AddressLabels">Place</div>
<input id="iPlace" type="text" class="AddressInputs" />
</div>
<div id="sPlace" class="AddressInputBlock"> <div id="lPlace2" class="AddressLabels">Place</div> <input id="iPlace" type="text" class="AddressInputs" /> </div>
<div id="sPlace" class="AddressInputBlock">
    <div id="lPlace2" class="AddressLabels">Place</div>
    <input id="iPlace" type="text" class="AddressInputs" />
</div>

Field Mapping

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<script>
var fields = [
{ element: "iPlace", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE }
];
</script>
<script> var fields = [ { element: "iPlace", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE } ]; </script>
<script>
     var fields = [
                { element: "iPlace", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE }
             ];
</script>

Step 3 – Set Options

Setting Options

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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);
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);
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);