From dddf2f5290567da46afbe131ee6b8cd469df62ac Mon Sep 17 00:00:00 2001 From: Ethan Davidson <31261035+EthanThatOneKid@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:09:51 -0800 Subject: [PATCH] Update form.ts --- src/lib/form/form.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/lib/form/form.ts b/src/lib/form/form.ts index 99fc783..225c65a 100644 --- a/src/lib/form/form.ts +++ b/src/lib/form/form.ts @@ -215,19 +215,28 @@ export interface RadioGroupQuestion extends QuestionBase { choices: string[]; /** - * customChoice is whether or not the form field has a custom choice. + * allowCustomChoice is whether or not the form field has a custom choice. + * + * By default, custom choices are not allowed. */ - allowCustomChoice: boolean; + allowCustomChoice?: boolean; /** - * choiceIndex is the value choice index for the question. A value of -1 for custom choice index. + * choiceIndex is the value choice index for the question. */ choiceIndex?: number; /** - * DefaultCustomChoice is the value custom choice for the form field. + * customChoice is the value custom choice for the form field. + * + * The custom choice is only used if allowCustomChoice is true. */ customChoice?: string; + + /** + * value is the default value for the question. + */ + value?: string; } export interface RadioGroupQuestionValue extends QuestionValueBase {