{"id":18290351,"url":"https://github.com/landofcoder/module-formbuilder-graph-ql","last_synced_at":"2025-09-02T19:38:52.054Z","repository":{"id":39607431,"uuid":"318690005","full_name":"landofcoder/module-formbuilder-graph-ql","owner":"landofcoder","description":"Magento 2 Form Builder with drag n drop \u0026 visual interface lets you build multiple forms in minutes. This module helps to create multiple website forms quickly and effectively to gather customers’ information","archived":false,"fork":false,"pushed_at":"2022-05-31T06:31:48.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T07:27:19.111Z","etag":null,"topics":["formbuilder","formbuilder-graphql","magento","magento2","magento2-module","pwa-ready"],"latest_commit_sha":null,"homepage":"https://landofcoder.com/magento-2-form-builder.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"osl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/landofcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-05T03:09:52.000Z","updated_at":"2023-08-29T02:16:09.000Z","dependencies_parsed_at":"2022-08-31T05:01:51.763Z","dependency_job_id":null,"html_url":"https://github.com/landofcoder/module-formbuilder-graph-ql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/landofcoder/module-formbuilder-graph-ql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landofcoder%2Fmodule-formbuilder-graph-ql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landofcoder%2Fmodule-formbuilder-graph-ql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landofcoder%2Fmodule-formbuilder-graph-ql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landofcoder%2Fmodule-formbuilder-graph-ql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/landofcoder","download_url":"https://codeload.github.com/landofcoder/module-formbuilder-graph-ql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landofcoder%2Fmodule-formbuilder-graph-ql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273341073,"owners_count":25088343,"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-09-02T02:00:09.530Z","response_time":77,"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":["formbuilder","formbuilder-graphql","magento","magento2","magento2-module","pwa-ready"],"created_at":"2024-11-05T14:10:37.106Z","updated_at":"2025-09-02T19:38:51.997Z","avatar_url":"https://github.com/landofcoder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento 2 Module Lof_FormbuilderGraphQl\n\n``landofcoder/module-formbuilder-graph-ql``\n\n - [Main Functionalities](#markdown-header-main-functionalities)\n - [Installation](#markdown-header-installation)\n - [Configuration](#markdown-header-configuration)\n - [Specifications](#markdown-header-specifications)\n - [Attributes](#markdown-header-attributes)\n\n\n## Main Functionalities\nSupport Graph Ql for Form builder extension, ready for PWA\n\n## Require\n- Magento version 2.3.5 or latest\n- Formbuilder version 1.1.4 or higher\n\n## Installation\n\\* = in production please use the `--keep-generated` option\n\n### Type 1: Zip file\n\n - Unzip the zip file in `app/code/Lof`\n - Enable the module by running `php bin/magento module:enable Lof_FormbuilderGraphQl`\n - Apply database updates by running `php bin/magento setup:upgrade`\\*\n - Flush the cache by running `php bin/magento cache:flush`\n\n### Type 2: Composer\n\n - Make the module available in a composer repository for example:\n    - private repository `repo.magento.com`\n    - public repository `packagist.org`\n    - public github repository as vcs\n - Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`\n - Install the module composer by running `composer require landofcoder/module-formbuilder-graph-ql`\n - enable the module by running `php bin/magento module:enable Lof_FormbuilderGraphQl`\n - apply database updates by running `php bin/magento setup:upgrade`\\*\n - Flush the cache by running `php bin/magento cache:flush`\n\n## TODO\n\n## Support Queries\n\n1. Get Form design by Id\n\n```\nquery {\n    lofFormBuilderFormById (form_id: Int!) {\n        title\n        identifier\n        show_captcha\n        show_toplink\n        submit_button_text\n        redirect_link\n        creation_time\n        before_form_content\n        after_form_content\n        success_message\n        page_title\n        meta_keywords\n        meta_description\n        submit_text_color\n        submit_background_color\n        submit_hover_color\n        input_hover_color\n        tags\n        design_fields {\n            cid\n            field_id\n            label\n            field_type\n            required\n            field_options\n            fieldcol\n            wrappercol\n            inline_css\n            field_size\n            font_weight\n            color_text\n            font_size\n            color_label\n            validation\n            include_blank_option\n            options {\n                label\n                checked\n            }\n        }\n        stores\n    }\n}\n```\n\n2. Get list public form profiles\n\n```\n{\n  lofFormBuilderFormList(filter: {}, pageSize: 5) {\n    items {\n        form_id\n        title\n        identifier\n        show_toplink\n        creation_time\n        page_title\n        tags\n    }\n    total_count\n    page_info {\n      page_size\n      current_page\n      total_pages\n    }\n  }\n}\n```\n\n3. Get my submitted messages list\n\n```\n{\n  lofFormBuilderMessageList (filter: {}, pageSize: 10, currentPage: 1) {\n    items {\n      message_id\n      form_id\n      product_id\n      subject\n      email_from\n      creation_time\n      message\n      \n    }\n    total_count\n    page_info {\n      page_size\n      current_page\n      total_pages\n    }\n  }\n}\n```\n\n4. Get my submitted message by ID\n\n\n```\n{\n  lofFormBuilderMessage (message_id: Int!) {\n    message_id\n    form_id\n    product_id\n    subject\n    email_from\n    creation_time\n    message\n  }\n}\n```\n\n5. POST form data - required customer logged in\n\n```\nmutation {\n    lofFormbuilderSubmit (input : SubmitFormInput!)\n}\n```\n\nSubmitFormInput:\n\n```\nform_id: Int!\nproduct_id : Int\ncaptcha: String\nfields : [SubmitFormFieldInput]!\n```\n\nSubmitFormFieldInput:\n\n```\ncid : String!\nfield_name : String!\nvalue: String!\n```\n\nExample:\n\n```\nmutation {\n  lofFormbuilderSubmit(\n    input: {\n      form_id: 2\n      product_id: 0\n      captcha: \"\"\n      fields: [\n        {\n          cid: \"name\"\n          field_name: \"loffield_name2\"\n          value: \"test name from api\"\n        }\n        {\n          cid: \"email\"\n          field_name: \"loffield_email2\"\n          value: \"testapi@gmail.com\"\n        }\n        { cid: \n          \"phone\"\n          field_name: \"loffield_phone2\"\n          value: \"01243655555\" \n        }\n        {\n          cid: \"content\"\n          field_name: \"loffield_content2\"\n          value: \"test content from api\"\n        }\n        { \n          cid: \"age\" \n          field_name: \"loffield_age2\"\n          value: \"Yes\" \n        }\n        { \n          cid: \"c5\"\n          field_name: \"loffield_c52\"\n          value: \"\" \n        }\n        { \n          cid: \"agreement\"\n          field_name: \"loffield_agreement2\"\n          value: \"Yes\" \n        }\n      ]\n    }\n  )\n}\n\n```\n\n**TODO**: support upload files form field\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandofcoder%2Fmodule-formbuilder-graph-ql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flandofcoder%2Fmodule-formbuilder-graph-ql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandofcoder%2Fmodule-formbuilder-graph-ql/lists"}