questions package¶
Submodules¶
- questions.cli module
- questions.form module
- questions.questions module
BarRatingQuestionBarRatingQuestion.choicesBarRatingQuestion.choices_by_urlBarRatingQuestion.choices_enable_ifBarRatingQuestion.choices_maxBarRatingQuestion.choices_minBarRatingQuestion.choices_orderBarRatingQuestion.choices_stepBarRatingQuestion.choices_visible_ifBarRatingQuestion.col_countBarRatingQuestion.correct_answerBarRatingQuestion.default_valueBarRatingQuestion.descriptionBarRatingQuestion.description_locationBarRatingQuestion.enable_ifBarRatingQuestion.extra_cssBarRatingQuestion.extra_jsBarRatingQuestion.has_otherBarRatingQuestion.hide_if_choices_emptyBarRatingQuestion.hide_numberBarRatingQuestion.indentBarRatingQuestion.kindBarRatingQuestion.max_widthBarRatingQuestion.min_widthBarRatingQuestion.nameBarRatingQuestion.options_captionBarRatingQuestion.other_error_textBarRatingQuestion.other_place_holderBarRatingQuestion.other_textBarRatingQuestion.rating_themeBarRatingQuestion.requiredBarRatingQuestion.required_error_textBarRatingQuestion.required_ifBarRatingQuestion.show_options_captionBarRatingQuestion.show_valuesBarRatingQuestion.start_with_new_lineBarRatingQuestion.titleBarRatingQuestion.title_locationBarRatingQuestion.use_display_values_in_titleBarRatingQuestion.validatorsBarRatingQuestion.value_nameBarRatingQuestion.visibleBarRatingQuestion.visible_ifBarRatingQuestion.width
BooleanQuestionBooleanQuestion.correct_answerBooleanQuestion.default_valueBooleanQuestion.descriptionBooleanQuestion.description_locationBooleanQuestion.enable_ifBooleanQuestion.extra_cssBooleanQuestion.extra_jsBooleanQuestion.hide_numberBooleanQuestion.indentBooleanQuestion.kindBooleanQuestion.label_falseBooleanQuestion.label_trueBooleanQuestion.max_widthBooleanQuestion.min_widthBooleanQuestion.nameBooleanQuestion.requiredBooleanQuestion.required_error_textBooleanQuestion.required_ifBooleanQuestion.show_titleBooleanQuestion.start_with_new_lineBooleanQuestion.titleBooleanQuestion.title_locationBooleanQuestion.use_display_values_in_titleBooleanQuestion.validatorsBooleanQuestion.value_falseBooleanQuestion.value_nameBooleanQuestion.value_trueBooleanQuestion.visibleBooleanQuestion.visible_ifBooleanQuestion.width
BootstrapDatePickerQuestionBootstrapDatePickerQuestion.auto_closeBootstrapDatePickerQuestion.auto_unmaskBootstrapDatePickerQuestion.clear_buttonBootstrapDatePickerQuestion.correct_answerBootstrapDatePickerQuestion.date_formatBootstrapDatePickerQuestion.days_of_week_highlightedBootstrapDatePickerQuestion.default_valueBootstrapDatePickerQuestion.descriptionBootstrapDatePickerQuestion.description_locationBootstrapDatePickerQuestion.disable_touch_keyboardBootstrapDatePickerQuestion.enable_ifBootstrapDatePickerQuestion.end_dateBootstrapDatePickerQuestion.extra_cssBootstrapDatePickerQuestion.extra_jsBootstrapDatePickerQuestion.hide_numberBootstrapDatePickerQuestion.indentBootstrapDatePickerQuestion.input_formatBootstrapDatePickerQuestion.input_maskBootstrapDatePickerQuestion.input_typeBootstrapDatePickerQuestion.kindBootstrapDatePickerQuestion.max_lengthBootstrapDatePickerQuestion.max_valueBootstrapDatePickerQuestion.max_widthBootstrapDatePickerQuestion.min_valueBootstrapDatePickerQuestion.min_widthBootstrapDatePickerQuestion.nameBootstrapDatePickerQuestion.place_holderBootstrapDatePickerQuestion.prefixBootstrapDatePickerQuestion.requiredBootstrapDatePickerQuestion.required_error_textBootstrapDatePickerQuestion.required_ifBootstrapDatePickerQuestion.sizeBootstrapDatePickerQuestion.start_dateBootstrapDatePickerQuestion.start_with_new_lineBootstrapDatePickerQuestion.stepBootstrapDatePickerQuestion.text_update_modeBootstrapDatePickerQuestion.titleBootstrapDatePickerQuestion.title_locationBootstrapDatePickerQuestion.today_highlightBootstrapDatePickerQuestion.use_display_values_in_titleBootstrapDatePickerQuestion.validatorsBootstrapDatePickerQuestion.value_nameBootstrapDatePickerQuestion.visibleBootstrapDatePickerQuestion.visible_ifBootstrapDatePickerQuestion.week_startBootstrapDatePickerQuestion.width
BootstrapSliderQuestionBootstrapSliderQuestion.correct_answerBootstrapSliderQuestion.default_valueBootstrapSliderQuestion.descriptionBootstrapSliderQuestion.description_locationBootstrapSliderQuestion.enable_ifBootstrapSliderQuestion.extra_cssBootstrapSliderQuestion.extra_jsBootstrapSliderQuestion.hide_numberBootstrapSliderQuestion.indentBootstrapSliderQuestion.kindBootstrapSliderQuestion.max_widthBootstrapSliderQuestion.min_widthBootstrapSliderQuestion.nameBootstrapSliderQuestion.range_maxBootstrapSliderQuestion.range_minBootstrapSliderQuestion.requiredBootstrapSliderQuestion.required_error_textBootstrapSliderQuestion.required_ifBootstrapSliderQuestion.start_with_new_lineBootstrapSliderQuestion.stepBootstrapSliderQuestion.titleBootstrapSliderQuestion.title_locationBootstrapSliderQuestion.use_display_values_in_titleBootstrapSliderQuestion.validatorsBootstrapSliderQuestion.value_nameBootstrapSliderQuestion.visibleBootstrapSliderQuestion.visible_ifBootstrapSliderQuestion.width
CKEditorQuestionCKEditorQuestion.correct_answerCKEditorQuestion.default_valueCKEditorQuestion.descriptionCKEditorQuestion.description_locationCKEditorQuestion.enable_ifCKEditorQuestion.extra_cssCKEditorQuestion.extra_jsCKEditorQuestion.heightCKEditorQuestion.hide_numberCKEditorQuestion.indentCKEditorQuestion.kindCKEditorQuestion.max_widthCKEditorQuestion.min_widthCKEditorQuestion.nameCKEditorQuestion.requiredCKEditorQuestion.required_error_textCKEditorQuestion.required_ifCKEditorQuestion.start_with_new_lineCKEditorQuestion.titleCKEditorQuestion.title_locationCKEditorQuestion.use_display_values_in_titleCKEditorQuestion.validatorsCKEditorQuestion.value_nameCKEditorQuestion.visibleCKEditorQuestion.visible_ifCKEditorQuestion.width
CheckboxQuestionCheckboxQuestion.choicesCheckboxQuestion.choices_by_urlCheckboxQuestion.choices_enable_ifCheckboxQuestion.choices_orderCheckboxQuestion.choices_visible_ifCheckboxQuestion.col_countCheckboxQuestion.correct_answerCheckboxQuestion.default_valueCheckboxQuestion.descriptionCheckboxQuestion.description_locationCheckboxQuestion.enable_ifCheckboxQuestion.extra_cssCheckboxQuestion.extra_jsCheckboxQuestion.has_noneCheckboxQuestion.has_otherCheckboxQuestion.has_select_allCheckboxQuestion.hide_if_choices_emptyCheckboxQuestion.hide_numberCheckboxQuestion.indentCheckboxQuestion.kindCheckboxQuestion.max_widthCheckboxQuestion.min_widthCheckboxQuestion.nameCheckboxQuestion.none_textCheckboxQuestion.other_error_textCheckboxQuestion.other_place_holderCheckboxQuestion.other_textCheckboxQuestion.requiredCheckboxQuestion.required_error_textCheckboxQuestion.required_ifCheckboxQuestion.select_all_textCheckboxQuestion.start_with_new_lineCheckboxQuestion.titleCheckboxQuestion.title_locationCheckboxQuestion.use_display_values_in_titleCheckboxQuestion.validatorsCheckboxQuestion.value_nameCheckboxQuestion.visibleCheckboxQuestion.visible_ifCheckboxQuestion.width
ChoicesQuestionChoicesQuestion.choicesChoicesQuestion.choices_by_urlChoicesQuestion.choices_enable_ifChoicesQuestion.choices_orderChoicesQuestion.choices_visible_ifChoicesQuestion.col_countChoicesQuestion.has_otherChoicesQuestion.hide_if_choices_emptyChoicesQuestion.kindChoicesQuestion.other_error_textChoicesQuestion.other_place_holderChoicesQuestion.other_text
CommentQuestionCommentQuestion.colsCommentQuestion.correct_answerCommentQuestion.default_valueCommentQuestion.descriptionCommentQuestion.description_locationCommentQuestion.enable_ifCommentQuestion.extra_cssCommentQuestion.extra_jsCommentQuestion.hide_numberCommentQuestion.indentCommentQuestion.kindCommentQuestion.max_lengthCommentQuestion.max_widthCommentQuestion.min_widthCommentQuestion.nameCommentQuestion.place_holderCommentQuestion.requiredCommentQuestion.required_error_textCommentQuestion.required_ifCommentQuestion.rowsCommentQuestion.start_with_new_lineCommentQuestion.text_update_modeCommentQuestion.titleCommentQuestion.title_locationCommentQuestion.use_display_values_in_titleCommentQuestion.validatorsCommentQuestion.value_nameCommentQuestion.visibleCommentQuestion.visible_ifCommentQuestion.width
DropdownQuestionDropdownQuestion.choicesDropdownQuestion.choices_by_urlDropdownQuestion.choices_enable_ifDropdownQuestion.choices_maxDropdownQuestion.choices_minDropdownQuestion.choices_orderDropdownQuestion.choices_stepDropdownQuestion.choices_visible_ifDropdownQuestion.col_countDropdownQuestion.correct_answerDropdownQuestion.default_valueDropdownQuestion.descriptionDropdownQuestion.description_locationDropdownQuestion.enable_ifDropdownQuestion.extra_cssDropdownQuestion.extra_jsDropdownQuestion.has_otherDropdownQuestion.hide_if_choices_emptyDropdownQuestion.hide_numberDropdownQuestion.indentDropdownQuestion.kindDropdownQuestion.max_widthDropdownQuestion.min_widthDropdownQuestion.nameDropdownQuestion.options_captionDropdownQuestion.other_error_textDropdownQuestion.other_place_holderDropdownQuestion.other_textDropdownQuestion.requiredDropdownQuestion.required_error_textDropdownQuestion.required_ifDropdownQuestion.show_options_captionDropdownQuestion.start_with_new_lineDropdownQuestion.titleDropdownQuestion.title_locationDropdownQuestion.use_display_values_in_titleDropdownQuestion.validatorsDropdownQuestion.value_nameDropdownQuestion.visibleDropdownQuestion.visible_ifDropdownQuestion.width
EmailValidatorEmotionsRatingQuestionEmotionsRatingQuestion.bg_emotionEmotionsRatingQuestion.choicesEmotionsRatingQuestion.choices_by_urlEmotionsRatingQuestion.choices_enable_ifEmotionsRatingQuestion.choices_maxEmotionsRatingQuestion.choices_minEmotionsRatingQuestion.choices_orderEmotionsRatingQuestion.choices_stepEmotionsRatingQuestion.choices_visible_ifEmotionsRatingQuestion.col_countEmotionsRatingQuestion.correct_answerEmotionsRatingQuestion.default_valueEmotionsRatingQuestion.descriptionEmotionsRatingQuestion.description_locationEmotionsRatingQuestion.emotion_colorEmotionsRatingQuestion.emotion_sizeEmotionsRatingQuestion.emotionsEmotionsRatingQuestion.emotions_countEmotionsRatingQuestion.enable_ifEmotionsRatingQuestion.extra_cssEmotionsRatingQuestion.extra_jsEmotionsRatingQuestion.has_otherEmotionsRatingQuestion.hide_if_choices_emptyEmotionsRatingQuestion.hide_numberEmotionsRatingQuestion.indentEmotionsRatingQuestion.kindEmotionsRatingQuestion.max_widthEmotionsRatingQuestion.min_widthEmotionsRatingQuestion.nameEmotionsRatingQuestion.options_captionEmotionsRatingQuestion.other_error_textEmotionsRatingQuestion.other_place_holderEmotionsRatingQuestion.other_textEmotionsRatingQuestion.requiredEmotionsRatingQuestion.required_error_textEmotionsRatingQuestion.required_ifEmotionsRatingQuestion.show_options_captionEmotionsRatingQuestion.start_with_new_lineEmotionsRatingQuestion.titleEmotionsRatingQuestion.title_locationEmotionsRatingQuestion.use_display_values_in_titleEmotionsRatingQuestion.validatorsEmotionsRatingQuestion.value_nameEmotionsRatingQuestion.visibleEmotionsRatingQuestion.visible_ifEmotionsRatingQuestion.width
ExpressionBlockExpressionBlock.correct_answerExpressionBlock.currencyExpressionBlock.default_valueExpressionBlock.descriptionExpressionBlock.description_locationExpressionBlock.display_styleExpressionBlock.enable_ifExpressionBlock.expressionExpressionBlock.expression_formatExpressionBlock.extra_cssExpressionBlock.extra_jsExpressionBlock.hide_numberExpressionBlock.indentExpressionBlock.kindExpressionBlock.max_widthExpressionBlock.maximum_fraction_digitsExpressionBlock.min_widthExpressionBlock.minimum_fraction_digitsExpressionBlock.nameExpressionBlock.requiredExpressionBlock.required_error_textExpressionBlock.required_ifExpressionBlock.start_with_new_lineExpressionBlock.titleExpressionBlock.title_locationExpressionBlock.use_display_values_in_titleExpressionBlock.use_groupingExpressionBlock.validatorsExpressionBlock.value_nameExpressionBlock.visibleExpressionBlock.visible_ifExpressionBlock.width
ExpressionValidatorFileQuestionFileQuestion.accepted_typesFileQuestion.allow_images_previewFileQuestion.allow_multipleFileQuestion.correct_answerFileQuestion.default_valueFileQuestion.descriptionFileQuestion.description_locationFileQuestion.enable_ifFileQuestion.extra_cssFileQuestion.extra_jsFileQuestion.hide_numberFileQuestion.image_heightFileQuestion.image_widthFileQuestion.indentFileQuestion.kindFileQuestion.max_sizeFileQuestion.max_widthFileQuestion.min_widthFileQuestion.nameFileQuestion.need_confirm_remove_fileFileQuestion.requiredFileQuestion.required_error_textFileQuestion.required_ifFileQuestion.show_previewFileQuestion.start_with_new_lineFileQuestion.store_data_as_textFileQuestion.titleFileQuestion.title_locationFileQuestion.use_display_values_in_titleFileQuestion.validatorsFileQuestion.value_nameFileQuestion.visibleFileQuestion.visible_ifFileQuestion.wait_for_uploadFileQuestion.width
HtmlBlockHtmlBlock.correct_answerHtmlBlock.default_valueHtmlBlock.descriptionHtmlBlock.description_locationHtmlBlock.enable_ifHtmlBlock.extra_cssHtmlBlock.extra_jsHtmlBlock.hide_numberHtmlBlock.htmlHtmlBlock.indentHtmlBlock.kindHtmlBlock.max_widthHtmlBlock.min_widthHtmlBlock.nameHtmlBlock.requiredHtmlBlock.required_error_textHtmlBlock.required_ifHtmlBlock.start_with_new_lineHtmlBlock.titleHtmlBlock.title_locationHtmlBlock.use_display_values_in_titleHtmlBlock.validatorsHtmlBlock.value_nameHtmlBlock.visibleHtmlBlock.visible_ifHtmlBlock.width
ImageBlockImageBlock.content_modeImageBlock.correct_answerImageBlock.default_valueImageBlock.descriptionImageBlock.description_locationImageBlock.enable_ifImageBlock.extra_cssImageBlock.extra_jsImageBlock.hide_numberImageBlock.image_fitImageBlock.image_heightImageBlock.image_linkImageBlock.image_widthImageBlock.indentImageBlock.kindImageBlock.max_widthImageBlock.min_widthImageBlock.nameImageBlock.requiredImageBlock.required_error_textImageBlock.required_ifImageBlock.start_with_new_lineImageBlock.titleImageBlock.title_locationImageBlock.use_display_values_in_titleImageBlock.validatorsImageBlock.value_nameImageBlock.visibleImageBlock.visible_ifImageBlock.width
ImagePickerQuestionImagePickerQuestion.choicesImagePickerQuestion.choices_by_urlImagePickerQuestion.choices_enable_ifImagePickerQuestion.choices_orderImagePickerQuestion.choices_visible_ifImagePickerQuestion.col_countImagePickerQuestion.content_modeImagePickerQuestion.correct_answerImagePickerQuestion.default_valueImagePickerQuestion.descriptionImagePickerQuestion.description_locationImagePickerQuestion.enable_ifImagePickerQuestion.extra_cssImagePickerQuestion.extra_jsImagePickerQuestion.has_otherImagePickerQuestion.hide_if_choices_emptyImagePickerQuestion.hide_numberImagePickerQuestion.image_fitImagePickerQuestion.image_heightImagePickerQuestion.image_widthImagePickerQuestion.indentImagePickerQuestion.kindImagePickerQuestion.max_widthImagePickerQuestion.min_widthImagePickerQuestion.multi_selectImagePickerQuestion.nameImagePickerQuestion.other_error_textImagePickerQuestion.other_place_holderImagePickerQuestion.other_textImagePickerQuestion.requiredImagePickerQuestion.required_error_textImagePickerQuestion.required_ifImagePickerQuestion.show_labelImagePickerQuestion.start_with_new_lineImagePickerQuestion.titleImagePickerQuestion.title_locationImagePickerQuestion.use_display_values_in_titleImagePickerQuestion.validatorsImagePickerQuestion.value_nameImagePickerQuestion.visibleImagePickerQuestion.visible_ifImagePickerQuestion.width
JQueryUIDatePickerQuestionJQueryUIDatePickerQuestion.auto_unmaskJQueryUIDatePickerQuestion.configJQueryUIDatePickerQuestion.correct_answerJQueryUIDatePickerQuestion.date_formatJQueryUIDatePickerQuestion.default_valueJQueryUIDatePickerQuestion.descriptionJQueryUIDatePickerQuestion.description_locationJQueryUIDatePickerQuestion.enable_ifJQueryUIDatePickerQuestion.extra_cssJQueryUIDatePickerQuestion.extra_jsJQueryUIDatePickerQuestion.hide_numberJQueryUIDatePickerQuestion.indentJQueryUIDatePickerQuestion.input_formatJQueryUIDatePickerQuestion.input_maskJQueryUIDatePickerQuestion.input_typeJQueryUIDatePickerQuestion.kindJQueryUIDatePickerQuestion.max_dateJQueryUIDatePickerQuestion.max_lengthJQueryUIDatePickerQuestion.max_valueJQueryUIDatePickerQuestion.max_widthJQueryUIDatePickerQuestion.min_dateJQueryUIDatePickerQuestion.min_valueJQueryUIDatePickerQuestion.min_widthJQueryUIDatePickerQuestion.nameJQueryUIDatePickerQuestion.place_holderJQueryUIDatePickerQuestion.prefixJQueryUIDatePickerQuestion.requiredJQueryUIDatePickerQuestion.required_error_textJQueryUIDatePickerQuestion.required_ifJQueryUIDatePickerQuestion.sizeJQueryUIDatePickerQuestion.start_with_new_lineJQueryUIDatePickerQuestion.stepJQueryUIDatePickerQuestion.text_update_modeJQueryUIDatePickerQuestion.titleJQueryUIDatePickerQuestion.title_locationJQueryUIDatePickerQuestion.use_display_values_in_titleJQueryUIDatePickerQuestion.validatorsJQueryUIDatePickerQuestion.value_nameJQueryUIDatePickerQuestion.visibleJQueryUIDatePickerQuestion.visible_ifJQueryUIDatePickerQuestion.width
MatrixDropdownQuestionMatrixDropdownQuestion.all_rows_requiredMatrixDropdownQuestion.cell_typeMatrixDropdownQuestion.cellsMatrixDropdownQuestion.choicesMatrixDropdownQuestion.column_col_countMatrixDropdownQuestion.column_layoutMatrixDropdownQuestion.column_min_widthMatrixDropdownQuestion.columnsMatrixDropdownQuestion.columns_visible_ifMatrixDropdownQuestion.correct_answerMatrixDropdownQuestion.default_valueMatrixDropdownQuestion.descriptionMatrixDropdownQuestion.description_locationMatrixDropdownQuestion.enable_ifMatrixDropdownQuestion.extra_cssMatrixDropdownQuestion.extra_jsMatrixDropdownQuestion.hide_numberMatrixDropdownQuestion.horizontal_scrollMatrixDropdownQuestion.indentMatrixDropdownQuestion.kindMatrixDropdownQuestion.max_widthMatrixDropdownQuestion.min_widthMatrixDropdownQuestion.nameMatrixDropdownQuestion.options_captionMatrixDropdownQuestion.requiredMatrixDropdownQuestion.required_error_textMatrixDropdownQuestion.required_ifMatrixDropdownQuestion.row_title_widthMatrixDropdownQuestion.rowsMatrixDropdownQuestion.rows_orderMatrixDropdownQuestion.rows_visible_ifMatrixDropdownQuestion.show_headerMatrixDropdownQuestion.start_with_new_lineMatrixDropdownQuestion.titleMatrixDropdownQuestion.title_locationMatrixDropdownQuestion.total_textMatrixDropdownQuestion.use_display_values_in_titleMatrixDropdownQuestion.validatorsMatrixDropdownQuestion.value_nameMatrixDropdownQuestion.visibleMatrixDropdownQuestion.visible_ifMatrixDropdownQuestion.width
MatrixDynamicQuestionMatrixDynamicQuestion.add_row_locationMatrixDynamicQuestion.add_row_textMatrixDynamicQuestion.all_rows_requiredMatrixDynamicQuestion.allow_add_rowsMatrixDynamicQuestion.allow_remove_rowsMatrixDynamicQuestion.cell_typeMatrixDynamicQuestion.cellsMatrixDynamicQuestion.choicesMatrixDynamicQuestion.column_col_countMatrixDynamicQuestion.column_layoutMatrixDynamicQuestion.column_min_widthMatrixDynamicQuestion.columnsMatrixDynamicQuestion.columns_visible_ifMatrixDynamicQuestion.confirm_deleteMatrixDynamicQuestion.confirm_delete_textMatrixDynamicQuestion.correct_answerMatrixDynamicQuestion.default_row_valueMatrixDynamicQuestion.default_valueMatrixDynamicQuestion.default_value_from_last_rowMatrixDynamicQuestion.descriptionMatrixDynamicQuestion.description_locationMatrixDynamicQuestion.enable_ifMatrixDynamicQuestion.extra_cssMatrixDynamicQuestion.extra_jsMatrixDynamicQuestion.hide_numberMatrixDynamicQuestion.horizontal_scrollMatrixDynamicQuestion.indentMatrixDynamicQuestion.key_duplication_errorMatrixDynamicQuestion.key_nameMatrixDynamicQuestion.kindMatrixDynamicQuestion.max_row_countMatrixDynamicQuestion.max_widthMatrixDynamicQuestion.min_row_countMatrixDynamicQuestion.min_widthMatrixDynamicQuestion.nameMatrixDynamicQuestion.options_captionMatrixDynamicQuestion.remove_row_textMatrixDynamicQuestion.requiredMatrixDynamicQuestion.required_error_textMatrixDynamicQuestion.required_ifMatrixDynamicQuestion.row_countMatrixDynamicQuestion.rowsMatrixDynamicQuestion.rows_orderMatrixDynamicQuestion.rows_visible_ifMatrixDynamicQuestion.show_headerMatrixDynamicQuestion.start_with_new_lineMatrixDynamicQuestion.titleMatrixDynamicQuestion.title_locationMatrixDynamicQuestion.use_display_values_in_titleMatrixDynamicQuestion.validatorsMatrixDynamicQuestion.value_nameMatrixDynamicQuestion.visibleMatrixDynamicQuestion.visible_ifMatrixDynamicQuestion.width
MatrixQuestionMatrixQuestion.all_rows_requiredMatrixQuestion.cellsMatrixQuestion.columnsMatrixQuestion.columns_visible_ifMatrixQuestion.correct_answerMatrixQuestion.default_valueMatrixQuestion.descriptionMatrixQuestion.description_locationMatrixQuestion.enable_ifMatrixQuestion.extra_cssMatrixQuestion.extra_jsMatrixQuestion.hide_numberMatrixQuestion.indentMatrixQuestion.kindMatrixQuestion.max_widthMatrixQuestion.min_widthMatrixQuestion.nameMatrixQuestion.requiredMatrixQuestion.required_error_textMatrixQuestion.required_ifMatrixQuestion.rowsMatrixQuestion.rows_orderMatrixQuestion.rows_visible_ifMatrixQuestion.show_headerMatrixQuestion.start_with_new_lineMatrixQuestion.titleMatrixQuestion.title_locationMatrixQuestion.use_display_values_in_titleMatrixQuestion.validatorsMatrixQuestion.value_nameMatrixQuestion.visibleMatrixQuestion.visible_ifMatrixQuestion.width
MicrophoneQuestionMicrophoneQuestion.correct_answerMicrophoneQuestion.default_valueMicrophoneQuestion.descriptionMicrophoneQuestion.description_locationMicrophoneQuestion.enable_ifMicrophoneQuestion.extra_cssMicrophoneQuestion.extra_jsMicrophoneQuestion.hide_numberMicrophoneQuestion.indentMicrophoneQuestion.kindMicrophoneQuestion.max_widthMicrophoneQuestion.min_widthMicrophoneQuestion.nameMicrophoneQuestion.requiredMicrophoneQuestion.required_error_textMicrophoneQuestion.required_ifMicrophoneQuestion.start_with_new_lineMicrophoneQuestion.titleMicrophoneQuestion.title_locationMicrophoneQuestion.use_display_values_in_titleMicrophoneQuestion.validatorsMicrophoneQuestion.value_nameMicrophoneQuestion.visibleMicrophoneQuestion.visible_ifMicrophoneQuestion.width
MultipleTextQuestionMultipleTextQuestion.col_countMultipleTextQuestion.correct_answerMultipleTextQuestion.default_valueMultipleTextQuestion.descriptionMultipleTextQuestion.description_locationMultipleTextQuestion.enable_ifMultipleTextQuestion.extra_cssMultipleTextQuestion.extra_jsMultipleTextQuestion.hide_numberMultipleTextQuestion.indentMultipleTextQuestion.item_sizeMultipleTextQuestion.itemsMultipleTextQuestion.kindMultipleTextQuestion.max_widthMultipleTextQuestion.min_widthMultipleTextQuestion.nameMultipleTextQuestion.requiredMultipleTextQuestion.required_error_textMultipleTextQuestion.required_ifMultipleTextQuestion.start_with_new_lineMultipleTextQuestion.titleMultipleTextQuestion.title_locationMultipleTextQuestion.use_display_values_in_titleMultipleTextQuestion.validatorsMultipleTextQuestion.value_nameMultipleTextQuestion.visibleMultipleTextQuestion.visible_ifMultipleTextQuestion.width
NoUISliderQuestionNoUISliderQuestion.correct_answerNoUISliderQuestion.default_valueNoUISliderQuestion.descriptionNoUISliderQuestion.description_locationNoUISliderQuestion.directionNoUISliderQuestion.enable_ifNoUISliderQuestion.extra_cssNoUISliderQuestion.extra_jsNoUISliderQuestion.hide_numberNoUISliderQuestion.indentNoUISliderQuestion.kindNoUISliderQuestion.max_widthNoUISliderQuestion.min_widthNoUISliderQuestion.nameNoUISliderQuestion.orientationNoUISliderQuestion.pips_densityNoUISliderQuestion.pips_modeNoUISliderQuestion.pips_textNoUISliderQuestion.pips_valuesNoUISliderQuestion.range_maxNoUISliderQuestion.range_minNoUISliderQuestion.requiredNoUISliderQuestion.required_error_textNoUISliderQuestion.required_ifNoUISliderQuestion.start_with_new_lineNoUISliderQuestion.stepNoUISliderQuestion.titleNoUISliderQuestion.title_locationNoUISliderQuestion.tooltipsNoUISliderQuestion.use_display_values_in_titleNoUISliderQuestion.validatorsNoUISliderQuestion.value_nameNoUISliderQuestion.visibleNoUISliderQuestion.visible_ifNoUISliderQuestion.width
NumericValidatorPagePanelBlockPanelDynamicBlockPanelDynamicBlock.allow_add_panelPanelDynamicBlock.allow_remove_panelPanelDynamicBlock.confirm_deletePanelDynamicBlock.confirm_delete_textPanelDynamicBlock.default_value_from_last_panelPanelDynamicBlock.inner_indentPanelDynamicBlock.key_duplication_errorPanelDynamicBlock.key_namePanelDynamicBlock.kindPanelDynamicBlock.max_panel_countPanelDynamicBlock.min_panel_countPanelDynamicBlock.panel_add_textPanelDynamicBlock.panel_countPanelDynamicBlock.panel_next_textPanelDynamicBlock.panel_prev_textPanelDynamicBlock.panel_remove_textPanelDynamicBlock.panels_statePanelDynamicBlock.render_modePanelDynamicBlock.show_question_numbersPanelDynamicBlock.show_range_in_progressPanelDynamicBlock.template_descriptionPanelDynamicBlock.template_elementsPanelDynamicBlock.template_titlePanelDynamicBlock.template_title_location
QuestionQuestion.correct_answerQuestion.default_valueQuestion.descriptionQuestion.description_locationQuestion.enable_ifQuestion.extra_cssQuestion.extra_jsQuestion.hide_numberQuestion.indentQuestion.kindQuestion.max_widthQuestion.min_widthQuestion.nameQuestion.requiredQuestion.required_error_textQuestion.required_ifQuestion.start_with_new_lineQuestion.titleQuestion.title_locationQuestion.use_display_values_in_titleQuestion.validatorsQuestion.value_nameQuestion.visibleQuestion.visible_ifQuestion.width
RadioGroupQuestionRadioGroupQuestion.choicesRadioGroupQuestion.choices_by_urlRadioGroupQuestion.choices_enable_ifRadioGroupQuestion.choices_orderRadioGroupQuestion.choices_visible_ifRadioGroupQuestion.col_countRadioGroupQuestion.correct_answerRadioGroupQuestion.default_valueRadioGroupQuestion.descriptionRadioGroupQuestion.description_locationRadioGroupQuestion.enable_ifRadioGroupQuestion.extra_cssRadioGroupQuestion.extra_jsRadioGroupQuestion.has_otherRadioGroupQuestion.hide_if_choices_emptyRadioGroupQuestion.hide_numberRadioGroupQuestion.indentRadioGroupQuestion.kindRadioGroupQuestion.max_widthRadioGroupQuestion.min_widthRadioGroupQuestion.nameRadioGroupQuestion.other_error_textRadioGroupQuestion.other_place_holderRadioGroupQuestion.other_textRadioGroupQuestion.requiredRadioGroupQuestion.required_error_textRadioGroupQuestion.required_ifRadioGroupQuestion.show_clear_buttonRadioGroupQuestion.start_with_new_lineRadioGroupQuestion.titleRadioGroupQuestion.title_locationRadioGroupQuestion.use_display_values_in_titleRadioGroupQuestion.validatorsRadioGroupQuestion.value_nameRadioGroupQuestion.visibleRadioGroupQuestion.visible_ifRadioGroupQuestion.width
RatingQuestionRatingQuestion.correct_answerRatingQuestion.default_valueRatingQuestion.descriptionRatingQuestion.description_locationRatingQuestion.enable_ifRatingQuestion.extra_cssRatingQuestion.extra_jsRatingQuestion.hide_numberRatingQuestion.indentRatingQuestion.kindRatingQuestion.max_rate_descriptionRatingQuestion.max_widthRatingQuestion.min_rate_descriptionRatingQuestion.min_widthRatingQuestion.nameRatingQuestion.rate_maxRatingQuestion.rate_minRatingQuestion.rate_stepRatingQuestion.rate_valuesRatingQuestion.requiredRatingQuestion.required_error_textRatingQuestion.required_ifRatingQuestion.start_with_new_lineRatingQuestion.titleRatingQuestion.title_locationRatingQuestion.use_display_values_in_titleRatingQuestion.validatorsRatingQuestion.value_nameRatingQuestion.visibleRatingQuestion.visible_ifRatingQuestion.width
RegexValidatorSelect2QuestionSelect2Question.choicesSelect2Question.choices_by_urlSelect2Question.choices_enable_ifSelect2Question.choices_maxSelect2Question.choices_minSelect2Question.choices_orderSelect2Question.choices_stepSelect2Question.choices_visible_ifSelect2Question.col_countSelect2Question.correct_answerSelect2Question.default_valueSelect2Question.descriptionSelect2Question.description_locationSelect2Question.enable_ifSelect2Question.extra_cssSelect2Question.extra_jsSelect2Question.has_otherSelect2Question.hide_if_choices_emptySelect2Question.hide_numberSelect2Question.indentSelect2Question.kindSelect2Question.max_widthSelect2Question.min_widthSelect2Question.nameSelect2Question.options_captionSelect2Question.other_error_textSelect2Question.other_place_holderSelect2Question.other_textSelect2Question.render_asSelect2Question.requiredSelect2Question.required_error_textSelect2Question.required_ifSelect2Question.select2_configSelect2Question.show_options_captionSelect2Question.start_with_new_lineSelect2Question.titleSelect2Question.title_locationSelect2Question.use_display_values_in_titleSelect2Question.validatorsSelect2Question.value_nameSelect2Question.visibleSelect2Question.visible_ifSelect2Question.width
SignaturePadQuestionSignaturePadQuestion.allow_clearSignaturePadQuestion.correct_answerSignaturePadQuestion.default_valueSignaturePadQuestion.descriptionSignaturePadQuestion.description_locationSignaturePadQuestion.enable_ifSignaturePadQuestion.extra_cssSignaturePadQuestion.extra_jsSignaturePadQuestion.heightSignaturePadQuestion.hide_numberSignaturePadQuestion.indentSignaturePadQuestion.kindSignaturePadQuestion.max_widthSignaturePadQuestion.min_widthSignaturePadQuestion.nameSignaturePadQuestion.requiredSignaturePadQuestion.required_error_textSignaturePadQuestion.required_ifSignaturePadQuestion.start_with_new_lineSignaturePadQuestion.titleSignaturePadQuestion.title_locationSignaturePadQuestion.use_display_values_in_titleSignaturePadQuestion.validatorsSignaturePadQuestion.value_nameSignaturePadQuestion.visibleSignaturePadQuestion.visible_ifSignaturePadQuestion.width
SortableJSQuestionSortableJSQuestion.choicesSortableJSQuestion.choices_by_urlSortableJSQuestion.choices_enable_ifSortableJSQuestion.choices_orderSortableJSQuestion.choices_visible_ifSortableJSQuestion.col_countSortableJSQuestion.correct_answerSortableJSQuestion.default_valueSortableJSQuestion.descriptionSortableJSQuestion.description_locationSortableJSQuestion.empty_textSortableJSQuestion.enable_ifSortableJSQuestion.extra_cssSortableJSQuestion.extra_jsSortableJSQuestion.has_noneSortableJSQuestion.has_otherSortableJSQuestion.has_select_allSortableJSQuestion.hide_if_choices_emptySortableJSQuestion.hide_numberSortableJSQuestion.indentSortableJSQuestion.kindSortableJSQuestion.max_answers_countSortableJSQuestion.max_widthSortableJSQuestion.min_widthSortableJSQuestion.nameSortableJSQuestion.none_textSortableJSQuestion.other_error_textSortableJSQuestion.other_place_holderSortableJSQuestion.other_textSortableJSQuestion.requiredSortableJSQuestion.required_error_textSortableJSQuestion.required_ifSortableJSQuestion.select_all_textSortableJSQuestion.start_with_new_lineSortableJSQuestion.titleSortableJSQuestion.title_locationSortableJSQuestion.use_display_values_in_titleSortableJSQuestion.validatorsSortableJSQuestion.value_nameSortableJSQuestion.visibleSortableJSQuestion.visible_ifSortableJSQuestion.width
SurveySurvey.calculated_valuesSurvey.check_errors_modeSurvey.clear_invisible_valuesSurvey.complete_textSurvey.completed_before_htmlSurvey.completed_htmlSurvey.completed_html_on_conditionSurvey.cookie_nameSurvey.descriptionSurvey.edit_textSurvey.first_page_is_startedSurvey.focus_first_question_automaticSurvey.focus_on_first_errorSurvey.go_next_page_automaticSurvey.loading_htmlSurvey.localeSurvey.logoSurvey.logo_fitSurvey.logo_heightSurvey.logo_positionSurvey.logo_widthSurvey.max_others_lengthSurvey.max_text_lengthSurvey.max_time_to_finishSurvey.modeSurvey.navigate_to_urlSurvey.navigate_to_url_on_conditionSurvey.page_next_textSurvey.page_prev_textSurvey.pagesSurvey.preview_textSurvey.progress_bar_typeSurvey.question_description_locationSurvey.question_error_locationSurvey.question_start_indexSurvey.question_title_locationSurvey.question_title_patternSurvey.question_title_templateSurvey.questions_on_page_modeSurvey.questions_orderSurvey.required_textSurvey.send_result_on_page_nextSurvey.show_completed_pageSurvey.show_navigation_buttonsSurvey.show_page_numbersSurvey.show_page_titlesSurvey.show_prev_buttonSurvey.show_preview_before_completeSurvey.show_progress_barSurvey.show_question_numbersSurvey.show_timer_panelSurvey.show_timer_panel_modeSurvey.show_titleSurvey.start_survey_textSurvey.store_others_as_commentSurvey.survey_idSurvey.survey_post_idSurvey.survey_show_data_savingSurvey.text_update_modeSurvey.titleSurvey.triggers
TagBoxQuestionTagBoxQuestion.choicesTagBoxQuestion.choices_by_urlTagBoxQuestion.choices_enable_ifTagBoxQuestion.choices_maxTagBoxQuestion.choices_minTagBoxQuestion.choices_orderTagBoxQuestion.choices_stepTagBoxQuestion.choices_visible_ifTagBoxQuestion.col_countTagBoxQuestion.correct_answerTagBoxQuestion.default_valueTagBoxQuestion.descriptionTagBoxQuestion.description_locationTagBoxQuestion.enable_ifTagBoxQuestion.extra_cssTagBoxQuestion.extra_jsTagBoxQuestion.has_otherTagBoxQuestion.hide_if_choices_emptyTagBoxQuestion.hide_numberTagBoxQuestion.indentTagBoxQuestion.kindTagBoxQuestion.max_widthTagBoxQuestion.min_widthTagBoxQuestion.nameTagBoxQuestion.options_captionTagBoxQuestion.other_error_textTagBoxQuestion.other_place_holderTagBoxQuestion.other_textTagBoxQuestion.requiredTagBoxQuestion.required_error_textTagBoxQuestion.required_ifTagBoxQuestion.select2_configTagBoxQuestion.show_options_captionTagBoxQuestion.start_with_new_lineTagBoxQuestion.titleTagBoxQuestion.title_locationTagBoxQuestion.use_display_values_in_titleTagBoxQuestion.validatorsTagBoxQuestion.value_nameTagBoxQuestion.visibleTagBoxQuestion.visible_ifTagBoxQuestion.width
TextQuestionTextQuestion.auto_unmaskTextQuestion.correct_answerTextQuestion.default_valueTextQuestion.descriptionTextQuestion.description_locationTextQuestion.enable_ifTextQuestion.extra_cssTextQuestion.extra_jsTextQuestion.hide_numberTextQuestion.indentTextQuestion.input_formatTextQuestion.input_maskTextQuestion.input_typeTextQuestion.kindTextQuestion.max_lengthTextQuestion.max_valueTextQuestion.max_widthTextQuestion.min_valueTextQuestion.min_widthTextQuestion.nameTextQuestion.place_holderTextQuestion.prefixTextQuestion.requiredTextQuestion.required_error_textTextQuestion.required_ifTextQuestion.sizeTextQuestion.start_with_new_lineTextQuestion.stepTextQuestion.text_update_modeTextQuestion.titleTextQuestion.title_locationTextQuestion.use_display_values_in_titleTextQuestion.validatorsTextQuestion.value_nameTextQuestion.visibleTextQuestion.visible_ifTextQuestion.width
TextValidatorValidator
- questions.settings module
- questions.templates module
- questions.utils module
- questions.validators module
Module contents¶
Top-level package for Questions.
- class questions.BarRatingQuestion(**data)[source]¶
Bases:
DropdownQuestionA question that uses the JQuery bar rating widget.
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
rating_theme:
Literal['fontawesome-stars','css-stars','bars-pill','bars-1to10','bars-movie','bars-reversed','bars-horizontal','fontawesome-stars-o']¶
-
show_values:
bool¶
-
extra_css:
- class questions.BooleanQuestion(**data)[source]¶
Bases:
QuestionGet the answer for any two-possibility question. Usually true/false, yes/ no questions.
-
kind:
str¶
-
label_false:
Union[str,Dict[str,str]]¶
-
label_true:
Union[str,Dict[str,str]]¶
-
show_title:
bool¶
-
value_false:
Union[str,Dict[str,str]]¶
-
value_true:
Union[str,Dict[str,str]]¶
-
kind:
- class questions.BootstrapDatePickerQuestion(**data)[source]¶
Bases:
TextQuestionA question that uses the bootstrap date picker.
-
auto_close:
bool¶
-
clear_button:
bool¶
-
date_format:
str¶
-
days_of_week_highlighted:
str¶
-
disable_touch_keyboard:
bool¶
-
end_date:
str¶
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
start_date:
str¶
-
today_highlight:
bool¶
-
week_start:
int¶
-
auto_close:
- class questions.BootstrapSliderQuestion(**data)[source]¶
Bases:
QuestionA question that uses the bootstrap slider widget.
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
range_max:
int¶
-
range_min:
int¶
-
step:
int¶
-
extra_css:
- class questions.CKEditorQuestion(**data)[source]¶
Bases:
QuestionA question that uses the CKEditor JQuery widget.
-
extra_js:
List[HttpUrl]¶
-
height:
str¶
-
kind:
str¶
-
extra_js:
- class questions.CheckboxQuestion(**data)[source]¶
Bases:
ChoicesQuestionSelect one or more options from a group of check boxes.
-
has_none:
bool¶
-
has_select_all:
bool¶
-
kind:
str¶
-
none_text:
Union[str,Dict[str,str]]¶
-
select_all_text:
Union[str,Dict[str,str]]¶
-
has_none:
- class questions.CommentQuestion(**data)[source]¶
Bases:
QuestionA question that uses a text area to get a multi-line text answer.
-
cols:
int¶
-
kind:
str¶
-
max_length:
int¶
-
place_holder:
Union[str,Dict[str,str]]¶
-
rows:
int¶
-
text_update_mode:
Literal['default','onBlur','onTyping']¶
-
cols:
- class questions.DropdownQuestion(**data)[source]¶
Bases:
ChoicesQuestionSelect one option from a dropdown menu.
-
choices_max:
int¶
-
choices_min:
int¶
-
choices_step:
int¶
-
kind:
str¶
-
options_caption:
str¶
-
show_options_caption:
bool¶
-
choices_max:
- class questions.EmailValidator(**data)[source]¶
Bases:
ValidatorChecks if a value is a valid email address.
-
kind:
str¶
-
kind:
- class questions.EmotionsRatingQuestion(**data)[source]¶
Bases:
DropdownQuestionA question that uses the emotion ratings JQuery widget.
-
bg_emotion:
str¶
-
emotion_color:
str¶
-
emotion_size:
int¶
-
emotions:
List[str]¶
-
emotions_count:
int¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
bg_emotion:
- class questions.ExpressionBlock(**data)[source]¶
Bases:
QuestionA block that inserts the result of an expression in a form.
-
currency:
str¶
-
display_style:
Literal['none','decimal','currency','percent','date']¶
-
expression:
str¶
-
expression_format:
str¶
-
kind:
str¶
-
maximum_fraction_digits:
int¶
-
minimum_fraction_digits:
int¶
-
use_grouping:
bool¶
-
currency:
- class questions.ExpressionValidator(**data)[source]¶
Bases:
ValidatorChecks if a question’s answer matches a set of conditions.
-
expression:
str¶
-
kind:
str¶
-
expression:
- class questions.FileQuestion(**data)[source]¶
Bases:
QuestionA question for uploading one or more files.
-
accepted_types:
str¶
-
allow_images_preview:
bool¶
-
allow_multiple:
bool¶
-
image_height:
int¶
-
image_width:
int¶
-
kind:
str¶
-
max_size:
int¶
-
need_confirm_remove_file:
bool¶
-
show_preview:
bool¶
-
store_data_as_text:
bool¶
-
wait_for_upload:
bool¶
-
accepted_types:
- class questions.Form(name='', action='', html_id='questions_form', theme='defaultV2', platform='jquery', resource_url=None, **params)[source]¶
Bases:
objectThis is the base class used for creating user-defined forms. In addition to setting up the form configuration and performing validation, it generates the SurveyJS form JSON and keeps track of the required Javascript and CSS resources.
- Parameters:
name (
str) – The name of the form. If empty, the class name is used.action (
str) – The URL where the form data will be posted. If empty, the same URL for the form is used.html_id (
str) – The id for the div element that will be used to render the form.theme (
Literal['defaultV2','bootstrap','modern']) – The name of the base theme for the form. Default value is ‘defaultV2’.platform (
Literal['angular','jquery','knockout','react','vue']) – The JS platform to use for generating the form. Default value is ‘jquery’.resource_url (
Optional[str]) – The base URL for the theme resources. If provided, Questions will expect to find all resources under this URL. If empty, the SurveyJS CDN will be used for all resources.params – Optional list of parameters to be passed to the SurveyJS form object.
- property css¶
Combined CSS resources for this form.
- default_params = {}¶
- property extra_css¶
Any extra CSS resources required by the form’s question types.
- property extra_js¶
Any extra JS resources required by the form’s question types.
- classmethod from_json(form_json, name)[source]¶
Generate a Form class definition from properly formatted JSON data. The The generated form class can then be instantiated as needed.
- Parameters:
form_json (
str) – A well formed JSON string with a SurveyJS definition.name (
str) – The name of the generated class.
- Returns:
A new Python Type that is a subclass of Form.
- property js¶
Combined JS resources for this form.
- questions_resource_url = 'https://unpkg.com'¶
- render_html(title=None, form_data=None)[source]¶
Render a full HTML page showing this form.
- Parameters:
title (
Optional[str]) – The form title.form_data (
Optional[Dict[str,Any]]) – answers to show on the form for each question (for edit forms).
- Returns:
String with the generated HTML.
- render_js(form_data=None)[source]¶
Generate the SurveyJS initialization code for the chosen platform.
- Parameters:
form_data (
Optional[Dict[str,Any]]) – answers to show on the form for each question (for edit forms).- Returns:
String with the generated javascript.
- property required_css¶
Required CSS resources needed to run SurveyJS on chosen platform.
- property required_js¶
Required JS resources needed to run SurveyJS on chosen platform.
- to_json()[source]¶
Convert the form to JSON, in the SurveyJS format.
- Returns:
JSON object with the form definition.
- update_object(obj, form_data)[source]¶
Utility method to set an object’s attributes with data obtained from a form. This method validates the data before setting the object’s attributes.
- Parameters:
obj (
Any) – The object to set attributes on.form_data (
Dict[str,Any]) – A dictionary-like object with the form data to be validated.
- Raises:
questions.validators.ValidationError if validation does not pass.
- validate(form_data, set_errors=False)[source]¶
Server side validation mimics what client side validation should do. This means that any validation errors here are due to form data being sent from outside the SurveyJS form, possibly by directly posting the data to the form. Questions keeps track of the errors, even though the UI will show them anyway. Validation returns False if at least one validator doesn’t pass.
- Parameters:
form_data (
Dict[str,Any]) – A dictionary-like object with the form data to be validated.set_errors (
bool) – set toTrueto add an __errors__ key to the form data dictionary, containing the validation errors.
- Returns:
Trueif the validation passes,Falseotherwise.
- class questions.FormPage(form, name='', **params)[source]¶
Bases:
objectRepresents an individual page from a multi-page form.
- Parameters:
form (
Type[Form]) – A subclass of questions.Form (not an instance). The form to be shown in its own page.name (
str) – The name of the form.params – Optional list of parameters to be passed to the SurveyJS page object.
- class questions.FormPanel(form, name='', dynamic=False, **params)[source]¶
Bases:
objectA panel is a set of fields that go together. It can be used for visual separation, or as a dynamically added group of fields for complex questions.
- Parameters:
form (
Type[Form]) – A subclass of questions.Form (not an instance). The form to be shown in its own page.name (
str) – The name of the form.dynamic (
bool) –- Set to
Trueif the panel will be used as a template for adding or removing groups of questions.
- Set to
params – Optional list of parameters to be passed to the SurveyJS panel object.
- class questions.HtmlBlock(**data)[source]¶
Bases:
QuestionAn HTML block that can be embedded in a form.
-
html:
Union[str,Dict[str,str]]¶
-
kind:
str¶
-
html:
- class questions.ImageBlock(**data)[source]¶
Bases:
QuestionAn block for inserting an image in a form.
-
content_mode:
Literal['image','video']¶
-
image_fit:
Literal['contain','none','cover','fill']¶
-
image_height:
int¶
-
image_link:
HttpUrl¶
-
image_width:
int¶
-
kind:
str¶
-
content_mode:
- class questions.ImagePickerQuestion(**data)[source]¶
Bases:
ChoicesQuestionDisplay a group of images and let the user pick one or more.
-
content_mode:
Literal['image','video']¶
-
has_other:
bool¶
-
image_fit:
Literal['contain','none','cover','fill']¶
-
image_height:
int¶
-
image_width:
int¶
-
kind:
str¶
-
multi_select:
bool¶
-
other_error_text:
Union[str,Dict[str,str]]¶
-
other_place_holder:
Union[str,Dict[str,str]]¶
-
other_text:
Union[str,Dict[str,str]]¶
-
show_label:
bool¶
-
content_mode:
- class questions.JQueryUIDatePickerQuestion(**data)[source]¶
Bases:
TextQuestionA question that uses the JQueryUI date picker.
-
config:
str¶
-
date_format:
str¶
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
max_date:
str¶
-
min_date:
str¶
-
config:
- class questions.MatrixDropdownQuestion(**data)[source]¶
Bases:
QuestionA matrix question that can include other types of input controls, like dropdowns and text boxes.
-
all_rows_required:
bool¶
-
cell_type:
Literal['dropdown','checkbox','radiogroup','text','comment','boolean','expression','rating']¶
-
cells:
Dict[str,Dict[str,Any]]¶
-
choices:
List[Any]¶
-
column_col_count:
int¶
-
column_layout:
Literal['horizontal','vertical']¶
-
column_min_width:
str¶
-
columns:
List[Any]¶
-
columns_visible_if:
str¶
-
horizontal_scroll:
bool¶
-
kind:
str¶
-
options_caption:
str¶
-
row_title_width:
str¶
-
rows:
List[Any]¶
-
rows_order:
Literal['initial','random']¶
-
rows_visible_if:
str¶
-
show_header:
bool¶
-
total_text:
str¶
-
all_rows_required:
- class questions.MatrixDynamicQuestion(**data)[source]¶
Bases:
QuestionA matrix dropdown question that allows the user to add or remove new rows from their answer.
-
add_row_location:
Literal['default','top','bottom','topBottom']¶
-
add_row_text:
str¶
-
all_rows_required:
bool¶
-
allow_add_rows:
bool¶
-
allow_remove_rows:
bool¶
-
cell_type:
Literal['dropdown','checkbox','radiogroup','text','comment','boolean','expression','rating']¶
-
cells:
Dict[str,Dict[str,Any]]¶
-
choices:
List[Any]¶
-
column_col_count:
int¶
-
column_layout:
Literal['horizontal','vertical']¶
-
column_min_width:
str¶
-
columns:
List[Any]¶
-
columns_visible_if:
str¶
-
confirm_delete:
bool¶
-
confirm_delete_text:
str¶
-
default_row_value:
Any¶
-
default_value_from_last_row:
bool¶
-
horizontal_scroll:
bool¶
-
key_duplication_error:
str¶
-
key_name:
str¶
-
kind:
str¶
-
max_row_count:
int¶
-
min_row_count:
int¶
-
options_caption:
str¶
-
remove_row_text:
str¶
-
row_count:
int¶
-
rows:
List[Any]¶
-
rows_order:
Literal['initial','random']¶
-
rows_visible_if:
str¶
-
show_header:
bool¶
-
add_row_location:
- class questions.MatrixQuestion(**data)[source]¶
Bases:
QuestionA question that displays rows of radio buttons and allows the user to select a value from one of several columns for each row.
-
all_rows_required:
bool¶
-
cells:
Dict[str,Dict[str,str]]¶
-
columns:
List[Any]¶
-
columns_visible_if:
str¶
-
kind:
str¶
-
rows:
List[Any]¶
-
rows_order:
Literal['initial','random']¶
-
rows_visible_if:
str¶
-
show_header:
bool¶
-
all_rows_required:
- class questions.MicrophoneQuestion(**data)[source]¶
Bases:
QuestionA question that uses the RecordRTC sound recording widgets.
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
extra_js:
- class questions.MultipleTextQuestion(**data)[source]¶
Bases:
QuestionA text question with multiple related parts. Displays a text box for each part.
-
col_count:
int¶
-
item_size:
int¶
-
items:
List[Dict[str,str]]¶
-
kind:
str¶
-
col_count:
- class questions.NoUISliderQuestion(**data)[source]¶
Bases:
QuestionA question that uses the NoUISlider JQuery widget.
-
direction:
str¶
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
orientation:
str¶
-
pips_density:
int¶
-
pips_mode:
str¶
-
pips_text:
List[Union[int,str]]¶
-
pips_values:
List[int]¶
-
range_max:
int¶
-
range_min:
int¶
-
step:
int¶
-
tooltips:
bool¶
-
direction:
- class questions.NumericValidator(**data)[source]¶
Bases:
ValidatorValidator for numeric input.
-
kind:
str¶
-
max_value:
int¶
-
min_value:
int¶
-
kind:
- class questions.RadioGroupQuestion(**data)[source]¶
Bases:
ChoicesQuestionSelect one option from a group of radio buttons.
-
kind:
str¶
-
show_clear_button:
bool¶
-
kind:
- class questions.RatingQuestion(**data)[source]¶
Bases:
QuestionA question that lets the user select a number on a fixed scale.
-
kind:
str¶
-
max_rate_description:
Union[str,Dict[str,str]]¶
-
min_rate_description:
Union[str,Dict[str,str]]¶
-
rate_max:
int¶
-
rate_min:
int¶
-
rate_step:
int¶
-
rate_values:
List[Union[int,Dict[str,Union[int,str]]]]¶
-
kind:
- class questions.RegexValidator(**data)[source]¶
Bases:
ValidatorChecks if a value matches a regular expression.
-
kind:
str¶
-
regex:
str¶
-
kind:
- class questions.Select2Question(**data)[source]¶
Bases:
DropdownQuestionA question that uses the Select2 dropdown widget.
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
render_as:
str¶
-
select2_config:
str¶
-
extra_css:
- class questions.SignaturePadQuestion(**data)[source]¶
Bases:
QuestionAllow the user to “sign” something by drawing their signature. Can be used to capture user drawings for other types of questions.
-
allow_clear:
bool¶
-
height:
int¶
-
kind:
str¶
-
width:
int¶
-
allow_clear:
- class questions.SortableJSQuestion(**data)[source]¶
Bases:
CheckboxQuestionA question that uses the JQuery sortable widget.
-
empty_text:
str¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
max_answers_count:
int¶
-
empty_text:
- class questions.TagBoxQuestion(**data)[source]¶
Bases:
DropdownQuestionA question that uses the Select2 tag box widget.
-
extra_css:
List[HttpUrl]¶
-
extra_js:
List[HttpUrl]¶
-
kind:
str¶
-
select2_config:
str¶
-
extra_css:
- class questions.TextQuestion(**data)[source]¶
Bases:
QuestionA question that uses a text input box. It can handle all HTML5 text input types.
-
auto_unmask:
bool¶
-
extra_js:
List[HttpUrl]¶
-
input_format:
str¶
-
input_mask:
str¶
-
input_type:
Literal['color','date','datetime','datetime-local','email','month','number','password','range','tel','text','time','url','week']¶
-
kind:
str¶
-
max_length:
int¶
-
max_value:
str¶
-
min_value:
str¶
-
place_holder:
Union[str,Dict[str,str]]¶
-
prefix:
str¶
-
size:
int¶
-
step:
str¶
-
text_update_mode:
Literal['default','onBlur','onTyping']¶
-
auto_unmask: