{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/72","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/72/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/72/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/72","id":40855481,"number":72,"title":"postProcess Examples","user":{"login":"dkengaroo","id":5048295,"avatar_url":"https://avatars.githubusercontent.com/u/5048295?v=3","gravatar_id":"","url":"https://api.github.com/users/dkengaroo","html_url":"https://github.com/dkengaroo","followers_url":"https://api.github.com/users/dkengaroo/followers","following_url":"https://api.github.com/users/dkengaroo/following{/other_user}","gists_url":"https://api.github.com/users/dkengaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/dkengaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkengaroo/subscriptions","organizations_url":"https://api.github.com/users/dkengaroo/orgs","repos_url":"https://api.github.com/users/dkengaroo/repos","events_url":"https://api.github.com/users/dkengaroo/events{/privacy}","received_events_url":"https://api.github.com/users/dkengaroo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-08-21T22:04:03Z","updated_at":"2015-05-10T21:46:21Z","closed_at":"2014-10-14T14:15:22Z","body":"Hiya,\r\n\r\nI was wondering if you could provide me some more examples with the postProcess function.\r\nFor example: \r\nI used \"*\" in the form. However, now I want to hide some properties. \r\nschemaFormProvider.postProcess(function(form){\r\n       //what do I do with form here\r\n        return form;\r\n    })\r\n\r\nOther than reverse() what are some 1 line examples that I could do in the postProcess?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/100704643","html_url":"https://github.com/Textalk/angular-schema-form/issues/72#issuecomment-100704643","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/72","id":100704643,"user":{"login":"subhendupsingh","id":5727516,"avatar_url":"https://avatars.githubusercontent.com/u/5727516?v=3","gravatar_id":"","url":"https://api.github.com/users/subhendupsingh","html_url":"https://github.com/subhendupsingh","followers_url":"https://api.github.com/users/subhendupsingh/followers","following_url":"https://api.github.com/users/subhendupsingh/following{/other_user}","gists_url":"https://api.github.com/users/subhendupsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/subhendupsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhendupsingh/subscriptions","organizations_url":"https://api.github.com/users/subhendupsingh/orgs","repos_url":"https://api.github.com/users/subhendupsingh/repos","events_url":"https://api.github.com/users/subhendupsingh/events{/privacy}","received_events_url":"https://api.github.com/users/subhendupsingh/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T21:46:21Z","updated_at":"2015-05-10T21:46:21Z","body":"I have done some changes to the form in postprocess function but they are not reflecting. \r\n\r\n.config(function(schemaFormProvider){\r\n\r\n        schemaFormProvider.postProcess(function(form){\r\n           for(var i=0;i<form.length;i++){\r\n                if(form[i].schema.title==\"Currency\"){\r\n                    form[i].schema.title=\"Subhendu\";\r\n                    break;\r\n                 //   form[i].schema.enum=['INR','KES'];\r\n                }\r\n            }\r\n            console.log(form);\r\n            return form;\r\n        })\r\n\r\n    });"}}