{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3775","repository_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3775/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3775/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3775/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3775","id":137770638,"number":3775,"title":"Documentation needs to be updated re: forms","user":{"login":"haneefkassam","id":6538654,"avatar_url":"https://avatars.githubusercontent.com/u/6538654?v=3","gravatar_id":"","url":"https://api.github.com/users/haneefkassam","html_url":"https://github.com/haneefkassam","followers_url":"https://api.github.com/users/haneefkassam/followers","following_url":"https://api.github.com/users/haneefkassam/following{/other_user}","gists_url":"https://api.github.com/users/haneefkassam/gists{/gist_id}","starred_url":"https://api.github.com/users/haneefkassam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haneefkassam/subscriptions","organizations_url":"https://api.github.com/users/haneefkassam/orgs","repos_url":"https://api.github.com/users/haneefkassam/repos","events_url":"https://api.github.com/users/haneefkassam/events{/privacy}","received_events_url":"https://api.github.com/users/haneefkassam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T04:34:00Z","updated_at":"2016-03-02T15:45:35Z","closed_at":null,"body":"Did you know, you can programmaticly validate individual form fields?  Did you also know you could add/remove prompts?  I didn't, and I've looked through the entire documentation, but turns out you can!\r\n\r\n```javascript\r\n// Validate individual fields. Returns true/false\r\n$('.ui.form').form('validate').field(<identifier>)\r\n\r\n// Add prompt message to a form field\r\n$('.ui.form').form('add').prompt(<identifier>,\"message\")\r\n\r\n// Remove prompt message from a form field\r\n$('.ui.form').form('remove').prompt(<identifier>)\r\n```\r\n\r\nTo learn this I had to hunt through the code, and found the answer in this massive file (https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/components/form.js).  The problem is, I'm pretty sure Semantic-UI is used by a lot of designers, who aren't great at reading code (or even developers who reference documentation), and wouldn't know this is possible by going through the documentation.\r\n\r\nThe semantic ui documentation badly needs updating.  I mean, even a list/table of all the objects that can be returned from the form method (based on parameter) and the actions you can perform on each one, would be such a great help to utilize Semantic-UI to its fullest.  Have you looked at Bootstrap's documentation?  Or JQuery?  It's pretty clear what you can do with the framework."},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/191294629","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3775#issuecomment-191294629","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3775","id":191294629,"user":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T15:45:35Z","updated_at":"2016-03-02T15:45:35Z","body":"I didn't anticipate anyone using strings to return groups of methods like that, but its a pretty cool (unintended) idea. \r\n\r\nThere's a list of invokable \"behaviors\", aka methods in the settings section. Typically sentence cased behaviors get looked up in the internal module and will map either to nested object or camel cased name. \r\nhttp://semantic-ui.com/behaviors/form.html#behavior"}}