{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1025","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1025/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1025/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1025","id":86932369,"number":1025,"title":"Exclude some required fields from a form","user":{"login":"MaximeWillinger","id":5830280,"avatar_url":"https://avatars.githubusercontent.com/u/5830280?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximeWillinger","html_url":"https://github.com/MaximeWillinger","followers_url":"https://api.github.com/users/MaximeWillinger/followers","following_url":"https://api.github.com/users/MaximeWillinger/following{/other_user}","gists_url":"https://api.github.com/users/MaximeWillinger/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximeWillinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximeWillinger/subscriptions","organizations_url":"https://api.github.com/users/MaximeWillinger/orgs","repos_url":"https://api.github.com/users/MaximeWillinger/repos","events_url":"https://api.github.com/users/MaximeWillinger/events{/privacy}","received_events_url":"https://api.github.com/users/MaximeWillinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-10T11:17:36Z","updated_at":"2015-06-16T17:27:01Z","closed_at":null,"body":"Hello,\r\n\r\nHow can I create an autoForm (with collection attribute) without include all the fields (in particular some required ones).\r\n\r\nFor example, the following example doesn't work.\r\n\r\n**Form :** \r\n```html\r\n{{#autoForm collection=\"myCollection\" id=\"formId\" type=\"method\" meteormethod=\"myMethod\"}}\r\n\r\n{{/autoForm}}\r\n```\r\n**Schema :** \r\n```js\r\n    'createdAt': {\r\n            type: Date,\r\n            \r\n        }\r\n```\r\n**Error :** \r\n```\r\nSimpleSchema invalid keys for \"formId\" context:\r\n{\r\n      name: 'createdAt',\r\n      type: 'required'\r\n}\r\n```\r\n\r\nOf course, it works if I add an `optional: true` into my field, but that's not what I want ...\r\nI also tried `autoform.omit`, but it does not change anything.\r\n\r\n\r\nThank you for your help,"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/comments/112505471","html_url":"https://github.com/aldeed/meteor-autoform/issues/1025#issuecomment-112505471","issue_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1025","id":112505471,"user":{"login":"MaximeWillinger","id":5830280,"avatar_url":"https://avatars.githubusercontent.com/u/5830280?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximeWillinger","html_url":"https://github.com/MaximeWillinger","followers_url":"https://api.github.com/users/MaximeWillinger/followers","following_url":"https://api.github.com/users/MaximeWillinger/following{/other_user}","gists_url":"https://api.github.com/users/MaximeWillinger/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximeWillinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximeWillinger/subscriptions","organizations_url":"https://api.github.com/users/MaximeWillinger/orgs","repos_url":"https://api.github.com/users/MaximeWillinger/repos","events_url":"https://api.github.com/users/MaximeWillinger/events{/privacy}","received_events_url":"https://api.github.com/users/MaximeWillinger/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T17:27:01Z","updated_at":"2015-06-16T17:27:01Z","body":"@kyooriouskoala Thank you for your answer! The `autoValue` option seems to be the best way to protect and process an hidden field. @higgisp, I'm not sure that hide a prefilled field is a good security practice... The user can actually change the value, which forces us to re-validate it server-side."}}