operation: "GetListItems",
async: false,
    listName: "Telekom Group",
    CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='Name' /><FieldRef Name='NameEng' /><FieldRef Name='Country' /></ViewFields>",
    CAMLQuery: '<Query><Where><Eq><FieldRef Name="Country" /><Value Type="Text">' + 'Test' + '</Value></Eq></Where></Query>',
    completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        liHtml = "<option value=''>" + $(this).attr("ows_Name") + "</option>";


<select title="ManagerIT" id="ManagerIT" listFieldName='ManagerIT' class='formInput'></select> 
  • 1
    Could you please be more specific on the question? – Nishkalank Mar 2 '15 at 9:44

If i understand your question, you need to populate the choice field in form with Choice field column from SPList. Correct me if i am wrong.

In you code, i do not see the code to append the choice fields. Might be due to that, its just displaying last item from choice field.

In loop , Could you try below line of code?

liHtml += "<option value=''>" + $(this).attr("ows_Name") + "</option>";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy