edsl icon indicating copy to clipboard operation
edsl copied to clipboard

QuestionCheckBox and QuestionList validation

Open onmyraedar opened this issue 5 months ago • 3 comments

I can initialize QuestionCheckBox with negative values for min_selections and max_selections - I don't think this should be the case?

>>> from edsl import QuestionCheckBox
>>> q = QuestionCheckBox(question_name="test", question_text="Please select your favorite option", question_options=["Option 1", "Option 2", "Option 3"], min_selections=-1, max_selections=-10)
>>> q
Question('checkbox', question_name = """test""", question_text = """Please select your favorite option""", min_selections = -1, max_selections = -10, question_options = ['Option 1', 'Option 2', 'Option 3'])

onmyraedar avatar Sep 15 '24 23:09 onmyraedar