{"action":"created","issue":{"url":"https://api.github.com/repos/ulion/jsonform/issues/22","labels_url":"https://api.github.com/repos/ulion/jsonform/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ulion/jsonform/issues/22/comments","events_url":"https://api.github.com/repos/ulion/jsonform/issues/22/events","html_url":"https://github.com/ulion/jsonform/issues/22","id":100910489,"number":22,"title":"selectfieldset doesn't support customising the fields in the form","user":{"login":"epitomus","id":893900,"avatar_url":"https://avatars.githubusercontent.com/u/893900?v=3","gravatar_id":"","url":"https://api.github.com/users/epitomus","html_url":"https://github.com/epitomus","followers_url":"https://api.github.com/users/epitomus/followers","following_url":"https://api.github.com/users/epitomus/following{/other_user}","gists_url":"https://api.github.com/users/epitomus/gists{/gist_id}","starred_url":"https://api.github.com/users/epitomus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epitomus/subscriptions","organizations_url":"https://api.github.com/users/epitomus/orgs","repos_url":"https://api.github.com/users/epitomus/repos","events_url":"https://api.github.com/users/epitomus/events{/privacy}","received_events_url":"https://api.github.com/users/epitomus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-14T01:52:07Z","updated_at":"2015-08-17T05:35:21Z","closed_at":"2015-08-17T05:20:23Z","body":"If you create a customfieldset, you cannot have the fields present in the form section as they are created dynamically. If you do, it causes name clashes, and will also show the field all the time.\r\n\r\n```json\r\n{\r\n  \"schema\": {\r\n    \"choice\": {\r\n      \"type\": \"string\",\r\n      \"enum\": [ \"text\", \"cat\" ]\r\n    },\r\n    \"text\": {\r\n      \"type\": \"string\",\r\n      \"title\": \"Text\"\r\n    },\r\n    \"category\": {\r\n      \"type\": \"string\",\r\n      \"title\": \"Category\",\r\n      \"enum\": [\r\n        \"Geography\",\r\n        \"Entertainment\",\r\n        \"History\",\r\n        \"Arts\",\r\n        \"Science\",\r\n        \"Sports\"\r\n      ]\r\n    }\r\n  },\r\n  \"form\": [\r\n    {\r\n      \"type\": \"selectfieldset\",\r\n      \"key\": \"choice\",\r\n      \"title\": \"Make a choice\",\r\n      \"titleMap\": {\r\n        \"text\": \"Search by text\",\r\n        \"cat\": \"Search by category\"\r\n      },\r\n      \"items\": [\r\n        \"text\",\r\n        \"category\"\r\n      ]\r\n    },\r\n    {\r\n      \"type\": \"text\",\r\n      \"key\": \"category\",\r\n      \"append\": \"today\"\r\n    },\r\n    {\r\n      \"type\": \"submit\",\r\n      \"value\": \"Submit\"\r\n    }\r\n  ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ulion/jsonform/issues/comments/131684315","html_url":"https://github.com/ulion/jsonform/issues/22#issuecomment-131684315","issue_url":"https://api.github.com/repos/ulion/jsonform/issues/22","id":131684315,"user":{"login":"epitomus","id":893900,"avatar_url":"https://avatars.githubusercontent.com/u/893900?v=3","gravatar_id":"","url":"https://api.github.com/users/epitomus","html_url":"https://github.com/epitomus","followers_url":"https://api.github.com/users/epitomus/followers","following_url":"https://api.github.com/users/epitomus/following{/other_user}","gists_url":"https://api.github.com/users/epitomus/gists{/gist_id}","starred_url":"https://api.github.com/users/epitomus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epitomus/subscriptions","organizations_url":"https://api.github.com/users/epitomus/orgs","repos_url":"https://api.github.com/users/epitomus/repos","events_url":"https://api.github.com/users/epitomus/events{/privacy}","received_events_url":"https://api.github.com/users/epitomus/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T05:35:21Z","updated_at":"2015-08-17T05:35:21Z","body":"Really useful! Are there any other top-level directives like *form* and *value*?"}}