enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
FormApp.FeedbackType.CORRECT입니다.
// Open a form by ID and add a new list item.constform=FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');constitem=form.addListItem();item.setTitle('Do you prefer cats or dogs?');// Set "Dogs" as the correct answer to this question.item.setChoices([item.createChoice('Dogs',true),item.createChoice('Cats',false),]);// Add feedback which will be shown for correct responses; ie "Dogs".item.setFeedbackForCorrect(FormApp.createFeedback().setDisplayText('Dogs rule, cats drool.').build(),);
속성
속성
유형
설명
CORRECT
Enum
정답을 맞힌 질문에 대해 응답자에게 자동으로 표시되는 의견입니다.
올바른 의견은 자동 채점을 지원하는 질문 유형 (예: 라디오 버튼, 체크박스, 선택)에만 첨부할 수 있습니다.
INCORRECT
Enum
잘못 답변한 질문에 대해 응답자에게 자동으로 표시되는 의견입니다.
잘못된 의견은 자동 채점을 지원하는 질문 유형 (예: 라디오 버튼, 체크박스, 선택)에만 첨부할 수 있습니다.
GENERAL
Enum
응답자가 응답을 제출할 때 자동으로 표시되는 의견입니다.
일반 의견은 자동 채점을 지원하지 않지만 채점 가능한 질문 유형 (예: 그리드 외 모든 유형)에만 첨부할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-22(UTC)"],[[["`FeedbackType` is an enum used to represent different types of feedback in Google Forms, accessible via `FormApp.FeedbackType`."],["It includes three properties: `CORRECT`, `INCORRECT`, and `GENERAL`, used to specify feedback for correct answers, incorrect answers, and general feedback respectively."],["Feedback is displayed to respondents automatically based on their answers and the type of feedback specified."],["Each feedback type is associated with specific question types it can be applied to for providing targeted feedback to users."]]],[]]