[ODK2] Problem with ajax query

Hi

I would like to have some fields to be pre-filled so I try to use ajax query. Using app designer, I do not manage the testing form attached to work
test_ajax.xlsx (18.5 KB)

I see those errors

odkCommon.js:1126 E/Exception: ‘Cannot read property ‘name’ of null’ in user-defined expression: context.query.results ? _.map(context.query.results.place,function(place){place.label=place.name;place.data_value=place.name;place.display={text:place.label};return place;}): on queries row 2 column: callback
builder.js:35 Uncaught Error: Exception: ‘Cannot read property ‘name’ of null’ in user-defined expression: context.query.results ? _.map(context.query.results.place,function(place){place.label=place.name;place.data_value=place.name;place.display={text:place.label};return place;}): on

Thanks for any help

Karim

It is better with uri set like this
http://query.yahooapis.com/v1/public/yql?format=json&q="+encodeURIComponent("select * from geo.places where text=‘san francisco’”)

I have the 10 choices but empty fields …

Working file
test_ajax_v0.xlsx (18.0 KB)