{"action":"created","issue":{"url":"https://api.github.com/repos/plomino/Plomino/issues/620","labels_url":"https://api.github.com/repos/plomino/Plomino/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/plomino/Plomino/issues/620/comments","events_url":"https://api.github.com/repos/plomino/Plomino/issues/620/events","html_url":"https://github.com/plomino/Plomino/issues/620","id":85051135,"number":620,"title":"grouping label and widget to help highlight errors","user":{"login":"djay","id":41700,"avatar_url":"https://avatars.githubusercontent.com/u/41700?v=3","gravatar_id":"","url":"https://api.github.com/users/djay","html_url":"https://github.com/djay","followers_url":"https://api.github.com/users/djay/followers","following_url":"https://api.github.com/users/djay/following{/other_user}","gists_url":"https://api.github.com/users/djay/gists{/gist_id}","starred_url":"https://api.github.com/users/djay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djay/subscriptions","organizations_url":"https://api.github.com/users/djay/orgs","repos_url":"https://api.github.com/users/djay/repos","events_url":"https://api.github.com/users/djay/events{/privacy}","received_events_url":"https://api.github.com/users/djay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T11:29:46Z","updated_at":"2015-06-04T17:28:05Z","closed_at":null,"body":"# User problem\r\nDesigners want forms with useful validation error reporting. Errors at the top are ok but they should provide links to jump to the fields on a long form. They should also highlight the where the error is so the person willing out the form can visually scan and find the right part.\r\nIdeally we should highlight the whole offending group including the label, helptext and widget.\r\n\r\n# internal\r\n\r\n- we have the id of the field when we get a validation formula error. We can pass this back with the message. JS can can insert a link.\r\n- how to deal with validation across many elements?\r\n\r\n- grouping labels and inputs is hard like in fieldsets. we already try to do it and have errors https://github.com/plomino/Plomino/issues/335\r\n\r\n# options\r\n\r\nlink to field:\r\n\r\n1. change the validation message api to return the id of the field\r\n\r\ngrouping label and widget for highlighting:\r\n\r\n1. could just highlight the label or input only. not really very nice\r\n2. could automatically group all elements that appear like below and wrap them in div or fieldset. This would change the plomino markup (maybe make it optional?)\r\n  - label\r\n  - help text or other stuff\r\n  - widget\r\n"},"comment":{"url":"https://api.github.com/repos/plomino/Plomino/issues/comments/108982832","html_url":"https://github.com/plomino/Plomino/issues/620#issuecomment-108982832","issue_url":"https://api.github.com/repos/plomino/Plomino/issues/620","id":108982832,"user":{"login":"ebrehault","id":460966,"avatar_url":"https://avatars.githubusercontent.com/u/460966?v=3","gravatar_id":"","url":"https://api.github.com/users/ebrehault","html_url":"https://github.com/ebrehault","followers_url":"https://api.github.com/users/ebrehault/followers","following_url":"https://api.github.com/users/ebrehault/following{/other_user}","gists_url":"https://api.github.com/users/ebrehault/gists{/gist_id}","starred_url":"https://api.github.com/users/ebrehault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebrehault/subscriptions","organizations_url":"https://api.github.com/users/ebrehault/orgs","repos_url":"https://api.github.com/users/ebrehault/repos","events_url":"https://api.github.com/users/ebrehault/events{/privacy}","received_events_url":"https://api.github.com/users/ebrehault/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T17:28:05Z","updated_at":"2015-06-04T17:28:05Z","body":"Instead of highlighting the fieldset/label/field/etc, we could just put a tooltip next to the field (something similar to http://getbootstrap.com/javascript/#tooltips). That's easier to implement, it does not add constraint on the markup, and it does catch the user attention."}}