{"id":15470860,"url":"https://github.com/choptastic/always_checkbox","last_synced_at":"2025-10-14T07:34:53.130Z","repository":{"id":23014183,"uuid":"26365019","full_name":"choptastic/always_checkbox","owner":"choptastic","description":"An `#always_checkbox{}` element for Nitrogen","archived":false,"fork":false,"pushed_at":"2016-12-12T20:04:02.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T07:34:52.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/choptastic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-08T15:41:55.000Z","updated_at":"2016-12-12T20:04:03.000Z","dependencies_parsed_at":"2022-07-23T11:02:20.065Z","dependency_job_id":null,"html_url":"https://github.com/choptastic/always_checkbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/choptastic/always_checkbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Falways_checkbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Falways_checkbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Falways_checkbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Falways_checkbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choptastic","download_url":"https://codeload.github.com/choptastic/always_checkbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Falways_checkbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018221,"owners_count":26086307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T02:07:22.089Z","updated_at":"2025-10-14T07:34:53.112Z","avatar_url":"https://github.com/choptastic.png","language":"Erlang","readme":"# always_checkbox\n\nNormal HTML checkboxes only submit their value when they are checked, but\nsometimes you *want* a value to be submitted even if the box is unchecked.\nThis offers an alternative that will submit a value depending on the checked\nstatus, customizable with `yes_value` and `no_value`.\n\nThis creates an `#always_checkbox{}` element for the [Nitrogen Web\nFramework](http://nitrogenproject.com)\n\n## Installing into a Nitrogen Application\n\nAdd it as a rebar dependency by adding into the deps section of rebar.config:\n\n```erlang\n\t{always_checkbox, \"\", {git, \"git://github.com/choptastic/always_checkbox.git\", {branch, master}}}\n```\n\n### Using Nitrogen's built-in plugin installer (Requires Nitrogen 2.2.0)\n\nRun `make` in your Application. The rest should be automatic.\n\n### Manual Installation (Nitrogen Pre-2.2.0)\n\nRun the following at the command line:\n\n```shell\n\t./rebar get-deps\n\t./rebar compile\n```\n\nThen add the following includes into any module requiring the form\n\n```erlang\n\t-include_lib(\"always_checkbox/include/records.hrl\").\n```\n\n## Usage\n\n```erlang\n\t#always_checkbox{\n\t\tpostback_id=my_checkbox,\n\t\tyes_value=\"Yes it's checked\",\n\t\tno_value=\"Not checked\",\n\t\tchecked=true\n\t}.\t\n```\n\nNote that this plugin works by using a hidden input to store\nthe intended values. That hidden input id, which is the one\nyou will wf:q(...), is set with the postback_id parameter.\n\n## License\n\nCopyright (c) 2014, [Jesse Gumm](http://sigma-star.com/page/jesse)\n([@jessegumm](http://twitter.com/jessegumm))\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoptastic%2Falways_checkbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoptastic%2Falways_checkbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoptastic%2Falways_checkbox/lists"}