</syntaxhighlight>
== Step 4. Call Create the Self-Referencing Function. ==
You need to modify the code below for it to work for you.
<syntaxhighlight lang="javascript" line start="1">
/*--------------------------------------
// The Self Referencing Lookup settings
}
</syntaxhighlight>
== Step 5. Call the Self-Referencing Function. ==
You now need to add the automated lookup to a field. This is usually done on the onChange of the value being looked up. i.e. if you search on a phone number, edit the phone number question and in the onChange of the box, add
<syntaxhighlight lang="javascript">
fn_SelfReferencing();
</syntaxhighlight>
And that should be it and you ready to test and use.