Skip to content

Commit

Permalink
Merge pull request #1215 from nextcloud/fix/multiple_choice
Browse files Browse the repository at this point in the history
Rename Radio buttons
  • Loading branch information
jotoeri committed May 31, 2022
2 parents 2f72418 + 21fac80 commit daf8282
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/models/AnswerTypes.js
Expand Up @@ -29,7 +29,7 @@ import QuestionDate from '../components/Questions/QuestionDate.vue'
/**
* @typedef {object} AnswerTypes
* @property {string} multiple Checkbox Answer
* @property {string} multiple_unique Multiple-Choice Answer
* @property {string} multiple_unique Radio buttons Answer
* @property {string} dropdown Dropdown Answer
* @property {string} short Short Text Answer
* @property {string} long Long Text Answer
Expand Down Expand Up @@ -68,12 +68,11 @@ export default {
multiple_unique: {
component: QuestionMultiple,
icon: 'icon-answer-multiple',
// TRANSLATORS Take care, a translation by word might not match! The english called 'Multiple-Choice' only allows to select a single-option (basically single-choice)!
label: t('forms', 'Multiple choice'),
label: t('forms', 'Radio buttons'),
predefined: true,
validate: question => question.options.length > 0,

titlePlaceholder: t('forms', 'Multiple choice question title'),
titlePlaceholder: t('forms', 'Radio buttons question title'),
warningInvalid: t('forms', 'This question needs a title and at least one answer!'),

// Using the same vue-component as multiple, this specifies that the component renders as multiple_unique.
Expand Down

0 comments on commit daf8282

Please sign in to comment.