{"action":"opened","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/542","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/542/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/542/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/542","id":127656040,"number":542,"title":"Could I change datepickerOpts depend on other field change?","user":{"login":"thearabbit","id":4495160,"avatar_url":"https://avatars.githubusercontent.com/u/4495160?v=3","gravatar_id":"","url":"https://api.github.com/users/thearabbit","html_url":"https://github.com/thearabbit","followers_url":"https://api.github.com/users/thearabbit/followers","following_url":"https://api.github.com/users/thearabbit/following{/other_user}","gists_url":"https://api.github.com/users/thearabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/thearabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thearabbit/subscriptions","organizations_url":"https://api.github.com/users/thearabbit/orgs","repos_url":"https://api.github.com/users/thearabbit/repos","events_url":"https://api.github.com/users/thearabbit/events{/privacy}","received_events_url":"https://api.github.com/users/thearabbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T10:48:33Z","updated_at":"2016-01-20T10:48:33Z","closed_at":null,"body":"I try to use `datepicker addon`\r\n```js\r\n    calculateType: {\r\n        type: String,\r\n        autoform: {\r\n            type: \"select-radio-inline\",\r\n            options: function () {\r\n               return [\r\n                   {label: \"2013\", value: 2013},\r\n                   {label: \"2014\", value: 2014},\r\n              ];\r\n            }\r\n        }\r\n},\r\nfromDate: {\r\n        type: Date,\r\n        defaultValue: moment().toDate(),\r\n        autoform: {\r\n            afFieldInput: {\r\n                type: 'bootstrap-datetimepicker',\r\n                dateTimePickerOptions: {\r\n                    format: 'DD/MM/YYYY'\r\n                }\r\n            }\r\n        }\r\n    },\r\n```\r\n- If `calculateType` change to `2013`, date format to `DD/MM/YYYY`\r\n- If `calculateType` change to `2014`, date format to `DD/MM/YYYY HH:mm:ss`\r\nPlease help me."}}