# Odk-x survey stops when trying to implement double metaphone function

**URL:** <https://forum.odk-x.org/t/odk-x-survey-stops-when-trying-to-implement-double-metaphone-function/965>\
**Category:** Support\
**Created:** [November 1, 2020, 2:36am UTC](https://forum.odk-x.org/t/odk-x-survey-stops-when-trying-to-implement-double-metaphone-function/965 "2020-11-01T02:36:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duncan\_Otieno](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/duncan_otieno/32/445_2.png) [@Duncan\_Otieno](https://forum.odk-x.org/u/Duncan_Otieno)\
**Post date:** [November 1, 2020, 2:36am UTC](https://forum.odk-x.org/t/odk-x-survey-stops-when-trying-to-implement-double-metaphone-function/965/1 "2020-11-01T02:36:24Z")

</div>

have downloaded the js. library from npm ( [GitHub - words/double-metaphone: Fast Double Metaphone algorithm](https://github.com/words/double-metaphone) ) into the ODK-X folder app/system/libs.  
How do I reference the variables in my form to effect the changes?

var doublemetaphone = require(‘double-metaphone’)  
var fname = doublemetaphone(firstname)  
I want the algorithm to effect on the sqllite database on my phone(variable:firstname)  
When I open odk-survey it stops working

Any help please

---

<div class="post-metadata">

**Author:** ![W\_Brunette](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/w_brunette/32/376_2.png) [@W\_Brunette](https://forum.odk-x.org/u/W_Brunette)\
**Post date:** [November 3, 2020, 1:00am UTC](https://forum.odk-x.org/t/odk-x-survey-stops-when-trying-to-implement-double-metaphone-function/965/2 "2020-11-03T01:00:24Z")

</div>

The system folder is controlled by the Survey and Tables APKS. The ODK-X system will overwrite the system folder as it needs to maintain the JavaScript to Java interface to access all the system features.

A recent discussion on importing libraries into Survey in this thread:

> [@Autocomplete searchable list select one](https://forum.odk-x.org/t/autocomplete-searchable-list-select-one/791):
>
> Hello, What is the easiest way to create a select\_one that can autocomplete, instantly searchable with ODK-X? I’m thinking of in HTML. Thank’s
