TypeError: Cannot read property 'init' of undefined

Forums SPJS-Lookup TypeError: Cannot read property 'init' of undefined

Viewing 3 reply threads
  • Author
    • #23792
      Josef Wainz

      I’m doing a simple SPJS-Lookup, but I keep getting:

      DFFS: There is an error in the Custom JS textarea:

      TypeError: Cannot read property ‘init’ of undefined

      I’m referring to a list 1 level up from the list with the lookup column.

      The Cases list I am adding the SPJS-Lookup to is at: https://me.sharepoint.com/sites/spmp/intranet/it
      The single line of text field to convert to a lookup is called Client

      The lookup list called Clients is at: https://me.sharepoint.com/sites/spmp/intranet

      I’ve uploaded a screenshot of the debugger output.

      Below is the js in Custom JS:

      “fieldToConvertToDropdown”: [
      “listName”: “Clients”,
      “listBaseUrl”: “/sites/spmp/intranet”,
      “optTextFieldInternalName”: “Title”,
      “pipeDelimitedOptions”: “false”,
      “optValFieldInternalName”: “ID”,
      “orderBy”: {
      “fin”: “Title”,
      “ascending”: true
      “clearInvalidSelections”: true,
      “filterObj”: {
      “on”: false,
      “folder”: “”,
      “CAML”: null,
      “fin”: “”,
      “isLookup”: false,
      “operator”: “”,
      “filterVal”: “”
      “dropDownDefaultvalue”: “”,
      “parseFunction”: “”,
      “addYouOwnValue”: {
      “on”: false,
      “linkText”: “Write your own value”
      “addToExternalList”: {
      “on”: false,
      “customFunction”: null,
      “linkText”: “Add new item”,
      “saveNewItemText”: “Save new item”
      “debug”: false,
      “customSort”: “”

    • #23805
      Alexander Bautz

      My guess is that you haven’t loaded the SPJS-Lookup script. How are you loading DFFS?


    • #23807
      Josef Wainz

      I’m in an SP Marketplace IT Portal site. They seem to have loaded DFFS using JSLink per this screenshot.

    • #23810
      Alexander Bautz

      I see. I would recommend that you hit the button to uninstall the JSLink version and then reinstall with the DFFS Installer.

      Please note thar you might need to look over the rules to ensure all work as planned because there have been some changes and bugfixes over the years that might mean you must reconfigure some rules. This depends on which version you are currently running, but I don’t think it will be any major issues with the upgrade.

      For the record: Uninstalling and reinstalling will only affect this form and not all forms with the JSLink version.


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