SPJS-lookup problem

Home Forums General discussion SPJS-lookup problem

Viewing 6 reply threads
  • Author
    Posts
    • #13432
      HYM
      Participant

        Dear Alexander,
        I am trying to use spjs-lookup I used this code:

        
        
        spjs.lookup.init({
           "fieldToConvertToDropdown": "origin",
        
           "listName": "ClientsLocation",
        
           "listBaseUrl": "",
        
           "optTextFieldInternalName": "Title",
        
           "sortFieldName": "Title",
        
           "filterObj": {
        
              "on": false,
        
              "CAML": null, // If used, the rest of the filterObj settings are disregarded
        
              "fin": "",
        
              "isLookup": false,
        
              "operator": "Eq",
        
              "filterVal": ""
        
            },
        
           "dropDownDefaultvalue": "...",
        
           "addYouOwnValue": {
        
              "on": false,
        
              "linkText": "Write your own value"
        
            },
        
           "addToExternalList": {
        
              "on": false,
        
              "customFunction": null,
        
              "linkText": "Add new item",
        
              "saveNewItemText": "Save new item"
        
            },
        
           "debug": false
        
        });

        can u check please if their is a problem because It Is not working with me and the dropdrown is always empty!!

        Attachments:
      • #13453
        Alexander Bautz
        Keymaster

          Ensure your list display name is actually “ClientsLocation” – and try changeing “listBaseUrl” to “/”.

          Alexander

        • #13460
          HYM
          Participant

            It didnt work,I will try to find out the problem.
            one more question,why debuger is always on,even when i put debug=false???

          • #13462
            Alexander Bautz
            Keymaster

              The debugger is on because there is an error in the query setup.

            • #13464
              HYM
              Participant

                ok solved ty for your time(ListBaseUrL was my error)

              • #13487
                HYM
                Participant

                  Mr.Alexander,can we add more features for the spjs-lookup?(for example when i create a lookup field i can “Add a column to show each of these additional fields: “)can i do the same option with SPJS-lookup??

                • #13498
                  Alexander Bautz
                  Keymaster

                    I’ll see what I can do in a later version, but you might want to look at the “autocomplete” plugin as this one has this feature built in.

                    Alexander

                Viewing 6 reply threads
                • You must be logged in to reply to this topic.