From bd05fe49b64324b190bd164d9b4322e46fb4b4db Mon Sep 17 00:00:00 2001 From: Ross Blair Date: Wed, 24 Apr 2019 14:03:15 -0700 Subject: [PATCH] have checkboxes use id_attribute over option_id as name Currently will not show as required when advancing pages when using option_id. --- expfactory/survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expfactory/survey.py b/expfactory/survey.py index 28bda44..69187e5 100644 --- a/expfactory/survey.py +++ b/expfactory/survey.py @@ -130,7 +130,7 @@ def create_checkbox(text,id_attribute,options,classes="",required=0): checkbox_html = '

%s

' %(id_attribute,text) for n in range(len(options)): option_id = "%s_%s" %(id_attribute,n) - checkbox_html = '%s\n' %(checkbox_html,class_names,option_id,option_id,meta,classes,required,option_id,options[n],options[n]) + checkbox_html = '%s\n' %(checkbox_html,class_names,option_id,option_id,meta,classes,required,id_attribute,options[n],options[n]) return "%s


" %(checkbox_html) def base_textfield(text,id_attribute,box_text=None):