{"action":"created","issue":{"url":"https://api.github.com/repos/simsalabim/sisyphus/issues/121","labels_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/121/comments","events_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/121/events","html_url":"https://github.com/simsalabim/sisyphus/issues/121","id":79603127,"number":121,"title":"Allow persisting fields by ids","user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-22T20:47:12Z","updated_at":"2015-05-26T17:12:57Z","closed_at":null,"body":"I have a form which has some fields with editable default values that other fields inherit from. For example:\r\n\r\n```html\r\n<input id=\"default_subject\" />\r\n<input id=\"subject_1\" name=\"subject_1\"/>\r\n<script>\r\n  // When our default is updated\r\n  $('#default_subject').on('change', function handleUpdate () {\r\n    // Update the `subject_1` value\r\n    var defaultVal = $('#default_subject').val();\r\n    $('#subject_1').val(defaultVal);\r\n  });\r\n</script>\r\n```\r\n\r\nThese default values are UI only as they are not required by the server. As a result, we don't name them so they don't get sent. However, they are editable by the user and we would like to persist them.\r\n\r\nTo support this in sisyphus, I would like to add `id` to part of the identifier as we do with form. I have created a fork which achieves this but it is short-sighted as we should really allow for a user to define whatever method they want for identifying a field element:\r\n\r\nhttps://github.com/simsalabim/sisyphus/compare/3d9dd246a4d95fa6f12646a33944c1c370bb1099"},"comment":{"url":"https://api.github.com/repos/simsalabim/sisyphus/issues/comments/105606530","html_url":"https://github.com/simsalabim/sisyphus/issues/121#issuecomment-105606530","issue_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/121","id":105606530,"user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T17:12:57Z","updated_at":"2015-05-26T17:12:57Z","body":"Sure thing, one PR coming up."}}