{"id":21926871,"url":"https://github.com/hounddd/wn-selfcomplete-plugin","last_synced_at":"2025-04-19T17:18:58.598Z","repository":{"id":65653000,"uuid":"364324064","full_name":"Hounddd/wn-selfcomplete-plugin","owner":"Hounddd","description":"A \"text\" formwidget which, like a \"dropdown\" field, offers options based on existing DB values.","archived":false,"fork":false,"pushed_at":"2023-06-10T14:18:41.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T10:43:47.576Z","etag":null,"topics":["autocomplete","formwidget","plugin","wintercms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hounddd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-04T16:46:11.000Z","updated_at":"2023-07-13T16:50:15.000Z","dependencies_parsed_at":"2024-11-29T02:04:07.919Z","dependency_job_id":null,"html_url":"https://github.com/Hounddd/wn-selfcomplete-plugin","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"cc7a77b04506490a3b6ad2c0bf81104e02ff5ee9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-selfcomplete-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-selfcomplete-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-selfcomplete-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-selfcomplete-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hounddd","download_url":"https://codeload.github.com/Hounddd/wn-selfcomplete-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249746646,"owners_count":21319663,"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","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":["autocomplete","formwidget","plugin","wintercms"],"created_at":"2024-11-28T22:11:55.202Z","updated_at":"2025-04-19T17:18:58.571Z","avatar_url":"https://github.com/Hounddd.png","language":"JavaScript","readme":"# Self complete formwidget\n\nA \"text\" formwidget which, like a \"dropdown\" field, offers options based on existing DB values.\n\n![Formwidget Selfcomplete in action](https://github.com/hounddd/wn-selfcomplete-plugin/blob/master/docs/assets/Selfcomplete.gif?raw=true)\n\n## Why this formwidget\n\nSimple **text** fields let only enter new values, while **dropdown** ones let only select between values.\n\nThis field will act as a text entry letting you enter any value consistent with the field, but at the same time will provide you with the previous unique values for that same field.\nIn this way it is possible to see the values already present in the database and to avoid duplicates due to different entries by different users.\n**It is still possible to enter whatever you want in the field.**\n\n\n## How to use\nThe plugin register a new form field type : `selfcomplete`.\nYou can use it in your [backend fields definition](https://wintercms.com/docs/backend/forms#form-fields).\n\n```\ncity:\n    label: City SelfComplete\n    type: selfcomplete\n    modelClass: \\Winter\\Test\\Models\\City\n    # table: 'winter_test_cities'\n    selectFrom: name\n```\n### Options\nNone of these are required, if omited the form widget will use the current controller class and field name.\n - **modelClass**: Model class name to use.\n - **table**: Table name to use.\n - **selectFrom**: Field name to use.\n\n*Be careful when using it, this form widget has not been tested with other than text fields.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhounddd%2Fwn-selfcomplete-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhounddd%2Fwn-selfcomplete-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhounddd%2Fwn-selfcomplete-plugin/lists"}