Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Google Biểu mẫu là một giải pháp bảng câu hỏi và khảo sát dựa trên đám mây, có tính năng cộng tác theo thời gian thực và các công cụ mạnh mẽ để tuỳ chỉnh câu hỏi trong biểu mẫu. Bạn cũng có thể dùng Google Biểu mẫu để tạo bài kiểm tra trực tuyến.
Bạn có thể mở rộng Google Biểu mẫu bằng các tiện ích bổ sung giúp người dùng tạo biểu mẫu khảo sát mới, thiết lập kết nối với các hệ thống bên thứ ba và tích hợp dữ liệu Biểu mẫu với các ứng dụng khác trong Google Workspace (chẳng hạn như Google Trang tính).
Dưới đây là một số việc bạn có thể làm với một tiện ích bổ sung mở rộng Google Biểu mẫu:
Bạn có thể tạo, truy cập và chỉnh sửa Google Biểu mẫu bằng Dịch vụ biểu mẫu Apps Script tích hợp. Dịch vụ Bảng tính cho phép bạn truy cập vào Google Trang tính nơi lưu trữ các câu trả lời của biểu mẫu.
Bạn có thể kiểm soát hành vi của biểu mẫu từ một tiện ích bổ sung bằng cách sử dụng dịch vụ Biểu mẫu. Ví dụ: bạn có thể xác định xem biểu mẫu có chấp nhận phản hồi hay gửi thông báo xác nhận cho người trả lời.
Bạn có thể tạo trình đơn tuỳ chỉnh và xác định nhiều giao diện hộp thoại và thanh bên tuỳ chỉnh bằng HTML và CSS tiêu chuẩn. Các thành phần giao diện người dùng này mở rộng trình chỉnh sửa Google Biểu mẫu, chứ không phải biểu mẫu mà người phản hồi nhìn thấy.
Bạn có thể sử dụng trình kích hoạt của tiện ích bổ sung để chạy các hàm được chỉ định khi một số sự kiện kích hoạt nhất định xảy ra. Ví dụ: trình kích hoạt có thể cài đặt khi gửi biểu mẫu cho phép tiện ích bổ sung của bạn phản ứng bất cứ khi nào có người gửi phản hồi qua biểu mẫu.
Cấu trúc biểu mẫu
Biểu mẫu trên Google bao gồm tiêu đề, nội dung mô tả và danh sách các câu hỏi trong biểu mẫu.
Bạn có thể chọn liên kết Biểu mẫu với một tệp Google Trang tính để thu thập câu trả lời của biểu mẫu.
Mỗi câu hỏi trong biểu mẫu đều có loại cho biết loại thông tin mà câu hỏi đó yêu cầu người trả lời cung cấp hoặc một phần tử biểu mẫu tĩnh (chẳng hạn như hình ảnh hoặc video). Mỗi loại được biểu thị bằng một đối tượng trong dịch vụ Biểu mẫu của Apps Script. Tiện ích bổ sung cho biểu mẫu có thể sử dụng dịch vụ này để thêm, sửa đổi, sắp xếp lại hoặc xoá các phần tử sau đây của biểu mẫu:
Biểu mẫu cũng có thể đóng vai trò là bài kiểm tra. Nếu chỉ định một biểu mẫu là bài kiểm tra, bạn có thể chỉ định giá trị điểm và phản hồi cho từng câu hỏi trong biểu mẫu. Giá trị điểm cho phép chấm điểm tuỳ chỉnh cho bài kiểm tra. Ý kiến phản hồi, được biểu thị bằng lớp QuizFeedback trong dịch vụ Biểu mẫu, là văn bản và đường liên kết được trình bày cho người trả lời sau khi trả lời câu hỏi liên quan trong biểu mẫu.
Điều kiện kích hoạt
Điều kiện kích hoạt của Apps Script cho phép một dự án tập lệnh thực thi một hàm được chỉ định khi đáp ứng một số điều kiện nhất định, chẳng hạn như khi một biểu mẫu được gửi hoặc khi một tiện ích bổ sung được cài đặt.
Hãy xem phần trình kích hoạt bổ sung để biết thêm thông tin về những trình kích hoạt có thể dùng với tiện ích bổ sung của Biểu mẫu và những quy định hạn chế áp dụng cho việc sử dụng các trình kích hoạt này.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-31 UTC."],[[["\u003cp\u003eGoogle Forms is a cloud-based solution for creating and sharing questionnaires, surveys, and quizzes, offering real-time collaboration and customization features.\u003c/p\u003e\n"],["\u003cp\u003eForms add-ons enhance the form creation process by enabling connections to other systems, extending functionality, and integrating with Google Workspace apps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage Apps Script's Forms service to programmatically control form behavior, access responses, and modify form elements.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Forms supports a variety of question types, including text-based, multiple-choice, grid, and date/time options, as well as static elements like images and videos.\u003c/p\u003e\n"],["\u003cp\u003eForms can be designated as quizzes, allowing for assigning points, providing feedback, and enabling automated grading.\u003c/p\u003e\n"]]],["Google Forms, a tool for surveys and quizzes, can be enhanced with add-ons. Add-ons utilize the Apps Script Forms service to create, edit, and control forms, access response data in Google Sheets, and build custom UIs within the editor. They can also implement triggers to execute functions on events like form submissions. Forms comprise questions and static elements; quizzes allow point values and feedback. Add-ons, found on the Google Workspace Marketplace, can enhance the form-building experience.\n"],null,["[Google Forms](https://workspace.google.com/products/forms/) is a cloud-based\nquestionnaire and survey solution with real-time collaboration and powerful\ntools to customize form questions. Google Forms can also be used to create\nonline quizzes.\n\nYou can extend Google Forms with add-ons that help users construct new surveys,\nestablish connectivity to third-party systems, and integrate your Forms data\nwith other Google Workspace applications (like\nGoogle Sheets).\n\nYou can see the Forms add-ons others have built on the\n[Google Workspace Marketplace](https://workspace.google.com/marketplace/category/works-with-form).\n| **Note:** Forms add-ons only extend the Forms editor itself, where the forms are constructed. Forms add-ons can't extend the form that is presented to potential respondents.\n\nWhat you can do\n\nHere are a few things you can do with an add-on that extends Google Forms:\n\n- You can create, access, and edit Google Forms using the built-in Apps Script [Forms service](/apps-script/reference/forms). The [Spreadsheet](/apps-script/reference/spreadsheet) service lets you access the Google Sheets where form responses are stored.\n- You can control form behavior from an add-on using the [Forms service](/apps-script/reference/forms). For example, you can determine whether the form is accepting responses or sends a confirmation message to respondents.\n- You can create [custom menus](/workspace/add-ons/concepts/menus) and define multiple [custom dialogs and sidebars](/workspace/add-ons/concepts/dialogs) interfaces using standard HTML and CSS. These UI components extend the Google Forms editor, not the form that respondents see.\n- You can use add-on [triggers](#triggers) to run specified functions when certain triggering events occur. For example, form-submit installable triggers let your add-on react whenever someone submits a form response.\n\nForm structure\n\nA Google form is composed of a title, description, and a list of form questions.\nOptionally, a Form can have an associated Google Sheet where the form responses\nare collected.\n\nEach form question has type indicating the kind of information it is asking the\nrespondent for, or a static form element (like an image or video). Each type\nis represented by an object in the Apps Script\n[Forms service](/apps-script/reference/forms). Forms add-ons can use this\nservice to add, modify, rearrange, or remove these form elements:\n\n- Question types\n - [Short answer text](/apps-script/reference/forms/text-item)\n - [Paragraph text](/apps-script/reference/forms/paragraph-text-item)\n - [Multiple choice](/apps-script/reference/forms/multiple-choice-item)\n - [Checkboxes](/apps-script/reference/forms/checkbox-item)\n - [Dropdown select menus (lists)](/apps-script/reference/forms/list-item)\n - [Linear scale](/apps-script/reference/forms/scale-item)\n - [Multiple choice grid](/apps-script/reference/forms/grid-item)\n - [Checkbox grid](/apps-script/reference/forms/checkbox-grid-item)\n - [Date](/apps-script/reference/forms/date-item)\n - [Duration](/apps-script/reference/forms/duration-item)\n - [Date-time](/apps-script/reference/forms/date-time-item)\n - [Time](/apps-script/reference/forms/time-item)\n- Static types\n - [Image](/apps-script/reference/forms/image-item)\n - [Page break](/apps-script/reference/forms/page-break-item)\n - [Section header](/apps-script/reference/forms/section-header-item)\n - [Video](/apps-script/reference/forms/video-item)\n\nQuizzes\n\nForms can also act as quizzes. If you set designate a form as a quiz, you are\nable to assign point values and feedback to each form question. Point values\nenable customized grading of the quiz. Feedback, represented by the\n[`QuizFeedback`](/apps-script/reference/forms/quiz-feedback) class in the\n[Forms service](/apps-script/reference/forms), is text and links\nthat are presented to the respondent after answering the associated form\nquestion.\n\nTriggers\n\nApps Script **triggers** let a script project execute a specified function\nwhen certain conditions are met, such as when a form is submitted or when an\nadd-on is installed.\n\nSee [add-on triggers](/workspace/add-ons/concepts/editor-triggers) for more information\non what triggers can be used with Forms add-ons and what restrictions apply\nto their use."]]