diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/UpdateQuestionId.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/UpdateQuestionId.tsx index f7f49c7fc4..7d7903ff74 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/UpdateQuestionId.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/edit/components/UpdateQuestionId.tsx @@ -40,6 +40,11 @@ export default function UpdateQuestionId({ updateQuestion(questionIdx, { id: prevValue }); toast.error("ID should not be empty."); return; + } else if (currentValue === "source" || currentValue === "suID" || currentValue === "userId") { + setCurrentValue(prevValue); + updateQuestion(questionIdx, { id: prevValue }); + toast.error("ID cannot used reserved words."); + return; } else { setIsInputInvalid(false); toast.success("Question ID updated.");