{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/312","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/312/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/312/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/312","id":63214288,"number":312,"title":"updateOn error with custom type","user":{"login":"PhilBroadbent","id":7779879,"avatar_url":"https://avatars.githubusercontent.com/u/7779879?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilBroadbent","html_url":"https://github.com/PhilBroadbent","followers_url":"https://api.github.com/users/PhilBroadbent/followers","following_url":"https://api.github.com/users/PhilBroadbent/following{/other_user}","gists_url":"https://api.github.com/users/PhilBroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilBroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilBroadbent/subscriptions","organizations_url":"https://api.github.com/users/PhilBroadbent/orgs","repos_url":"https://api.github.com/users/PhilBroadbent/repos","events_url":"https://api.github.com/users/PhilBroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/PhilBroadbent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-20T11:48:46Z","updated_at":"2015-03-20T14:08:28Z","closed_at":null,"body":"Hi - I'm trying to create my own type but having a problem....\r\n\r\nMy form:\r\n\r\n    {\r\n      fieldName: 'test',\r\n      title: 'Phils Test',\r\n      type: 'string',\r\n      uiType: 'multiselect',\r\n      format: 'multiselect',\r\n      required: false\r\n    }\r\n\r\nfieldname maps to Key\r\nuiType maps to type\r\nThus my form becomes:\r\n    key: \"test\"\r\n    type: \"multiselect\"\r\n\r\nWhen I come into my js config file with my variable \r\n\r\n    var multiselect = function(name, schema, options) {\r\n      if (schema.type === 'string' && schema.format === 'multiselect') {\r\n        var f = schemaFormProvider.stdFormObj(name, schema, options);\r\n        f.key  = options.path;\r\n        f.type = 'multiselect';\r\n        options.lookup[sfPathProvider.stringify(options.path)] = f;\r\n        return f;\r\n      }\r\n    };\r\n\r\noptions does NOT contain options for my form element.\r\nActualy i've just found that in some calls it does - thing is, it gets  called 16 times?!?\r\n\r\n    global: Object\r\n    ignore: Object\r\n    lookup: Object\r\n        ['regions']: Object\r\n        ['scorecard']: Object\r\n        ['system']: Object\r\n        ['transactiondate']: Object\r\n    __proto__: Object\r\n    path: Array[1]\r\n    required: undefined\r\n    __proto__: Object\r\n\r\nThus options doesn’t get set…so I see:\r\n\r\n`TypeError: Cannot read property 'updateOn' of undefined`\r\n``    at new ngModelOptionsDirective.controller (angular.js:23812)``\r\n`    at Object.invoke (angular.js:4203)`\r\n`    at $get.extend.instance (angular.js:8493)`\r\n`    at angular.js:7739`\r\n`    at forEach (angular.js:331)`\r\n`    at nodeLinkFn (angular.js:7738)`\r\n`    at compositeLinkFn (angular.js:7117)`\r\n`    at publicLinkFn (angular.js:6996)`\r\n`    at scorecards.controller.js:83`\r\n`    at processQueue (angular.js:13248)`\r\n\r\nNote that my html file is copied from datepicker, but replacing the input with something simple:\r\n\r\n`<input ng-show=\"form.key\"`\r\n   `    style=\"background-color: white\"`\r\n    `   type=\"text\"`\r\n    `   class=\"form-control\"`\r\n     `  schema-validate=\"form\"`\r\n       `ng-model=\"$$value$$\"/>`\r\n\r\nAlso note my schema is:\r\n\r\n    properties: Object\r\n    regions: Object\r\n    scorecard: Object\r\n    system: Object\r\n    test: Object\r\n        fieldName: \"test\"\r\n        format: \"multiselect\"\r\n        required: false\r\n        title: \"Phils Test\"\r\n        type: \"string\"\r\n        uiType: \"multiselect\"\r\n    __proto__: Object\r\n    transactiondate: Object\r\n\r\nCan anyone suggest what's going on please?"},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/84023592","html_url":"https://github.com/Textalk/angular-schema-form/issues/312#issuecomment-84023592","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/312","id":84023592,"user":{"login":"PhilBroadbent","id":7779879,"avatar_url":"https://avatars.githubusercontent.com/u/7779879?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilBroadbent","html_url":"https://github.com/PhilBroadbent","followers_url":"https://api.github.com/users/PhilBroadbent/followers","following_url":"https://api.github.com/users/PhilBroadbent/following{/other_user}","gists_url":"https://api.github.com/users/PhilBroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilBroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilBroadbent/subscriptions","organizations_url":"https://api.github.com/users/PhilBroadbent/orgs","repos_url":"https://api.github.com/users/PhilBroadbent/repos","events_url":"https://api.github.com/users/PhilBroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/PhilBroadbent/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T14:08:28Z","updated_at":"2015-03-20T14:08:28Z","body":"Reloading errors:\r\n\r\n    GET http://localhost:35729/livereload.js?snipver=1 net::ERR_CONNECTION_REFUSED\r\n    jquery.js:7784 Synchronous XMLHttpRequest on the main thread is deprecated because of its   detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.\r\n    VM83518:26293 WARNING: Tried to load angular more than once.\r\n    VM83544:13 Uncaught Highcharts error #16: www.highcharts.com/errors/16\r\n\r\nInteresting - I can't see the call in networks tab (although there's a lot so maybe I missed). But  my express server says:\r\n\r\nExpress server listening on 9000, in development mode\r\nGET /dataquality/scorecards/drilldown 304 11ms\r\nGET /client/components/schema-form-addons/multiselect/multiselect.html 304 1ms\r\n\r\nI didn't pay attention to 304 as I always get that drilldown message there which works fine...but from reading about it it's an error? Unsure of how to load it if this is a problem.\r\n\r\n"}}