{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/383","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/383/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/383/events","html_url":"https://github.com/formly-js/angular-formly/issues/383","id":93665017,"number":383,"title":"Custom value (getter/setter) function in field config object is ignored","user":{"login":"prokilogrammer","id":787179,"avatar_url":"https://avatars.githubusercontent.com/u/787179?v=3","gravatar_id":"","url":"https://api.github.com/users/prokilogrammer","html_url":"https://github.com/prokilogrammer","followers_url":"https://api.github.com/users/prokilogrammer/followers","following_url":"https://api.github.com/users/prokilogrammer/following{/other_user}","gists_url":"https://api.github.com/users/prokilogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/prokilogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prokilogrammer/subscriptions","organizations_url":"https://api.github.com/users/prokilogrammer/orgs","repos_url":"https://api.github.com/users/prokilogrammer/repos","events_url":"https://api.github.com/users/prokilogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/prokilogrammer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-08T01:01:57Z","updated_at":"2015-07-08T15:27:50Z","closed_at":"2015-07-08T02:27:38Z","body":"If I implement the value function as specified [here](http://docs.angular-formly.com/v6.16.0/docs/field-configuration-object#value-gettersetter-function), it is never applied on the model. Example: http://jsbin.com/setesezuqi/1/edit?html,js,output. \r\n\r\nLooking under the hood, [`extendOptionsWithDefaults`](https://github.com/formly-js/angular-formly/blob/master/src/directives/formly-field.js#L136) in formly-field.js overwrites my custom function with the default `valueGetterSetter()`. \r\n\r\nIf this hasn't been fixed yet, I can submit a PR"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/119625136","html_url":"https://github.com/formly-js/angular-formly/issues/383#issuecomment-119625136","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/383","id":119625136,"user":{"login":"ckniffen","id":464895,"avatar_url":"https://avatars.githubusercontent.com/u/464895?v=3","gravatar_id":"","url":"https://api.github.com/users/ckniffen","html_url":"https://github.com/ckniffen","followers_url":"https://api.github.com/users/ckniffen/followers","following_url":"https://api.github.com/users/ckniffen/following{/other_user}","gists_url":"https://api.github.com/users/ckniffen/gists{/gist_id}","starred_url":"https://api.github.com/users/ckniffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckniffen/subscriptions","organizations_url":"https://api.github.com/users/ckniffen/orgs","repos_url":"https://api.github.com/users/ckniffen/repos","events_url":"https://api.github.com/users/ckniffen/events{/privacy}","received_events_url":"https://api.github.com/users/ckniffen/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T15:27:50Z","updated_at":"2015-07-08T15:27:50Z","body":"I have an internal and an external representation of the input.  For example I have ui-select type.  ui-select requires an array of objects but the value that gets stored on the formly model is the object's id or an array of ids.  The getterSetter handles that mapping for the type."}}