Skip to content

Add date question type and response models#53

Open
elvisdragonmao wants to merge 4 commits intomainfrom
feat/question-type-date-picker
Open

Add date question type and response models#53
elvisdragonmao wants to merge 4 commits intomainfrom
feat/question-type-date-picker

Conversation

@elvisdragonmao
Copy link
Contributor

@elvisdragonmao elvisdragonmao commented Feb 9, 2026

Type of changes

  • Feature

Purpose

  • Change date question type and response models to fit needs.

Additional Information

Now it includes four data:

  • Date: int
  • Have year: bool
  • Have month: bool
  • Have day: bool
  • Min date: int
  • Max date: int

value: int32;
}

@example(#{ questionId: "2b2bc4f4-71c1-478b-9e36-516eac6b36c3", questionType: CoreSystem.Forms.QuestionTypes.date, date: 1735689600, hasYear: true, hasMonth: true, hasDay: true })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date example should convert into utcDatetime as well

answers: #[
#{ questionId: "ee894524-4bd8-4a64-8fd2-a53b39ca94cd", questionType: CoreSystem.Forms.QuestionTypes.shortText, value: #["John Doe"] },
#{ questionId: "2b2bc4f4-71c1-478b-9e36-516eac6b36c3", questionType: CoreSystem.Forms.QuestionTypes.linearScale, value: 4 },
#{ questionId: "3c3cd5f5-82d2-589c-af47-627fbd7c47d4", questionType: CoreSystem.Forms.QuestionTypes.date, date: 1735689600, hasYear: true, hasMonth: true, hasDay: true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date example should convert into utcDatetime as well

@elvisdragonmao elvisdragonmao force-pushed the feat/question-type-date-picker branch from 1462963 to 67f07d2 Compare February 9, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants