Skip to content

Commit

Permalink
Update form.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Mar 6, 2024
1 parent cdd754c commit dddf2f5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/lib/form/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dddf2f5

Please sign in to comment.