hello,

i'm using 4.6 and i've got forms module and survey module installed...and they seem to working properly, except...

for some reason, every time i go back to the survey, questions are in a different order than how i added them to the survey. for example, instead of the numbers following chronologically, now the question numbers are in the following order: 1, 10, 11, 12, 13...19, 2, 20, 21, 22, 3...9. admittedly, i'd love to have a function which allows the randomization of question order - i'd just like to have some control over it - eg, choose when i want to randomize the question order. any ideas on how to keep the order static?

much appreciated,
eva

Comments

Folkert’s picture

change the weight of the fields, that way you decide on the oder they are shown in.

eva’s picture

thank you folkert,

i figured that out a little before you responded, and now as people are filling out the survey i'm looking at the responses to make sure everything looks copasetic. the order of the questions (under responses) is different for almost every user who has responded to the survey. all of the questions, except one in the middle are required - the one that isn't required is a text field and all the other questions are radios. ultimately, i don't really care about the order of the responses as i view them online, but i am hoping to gawd that when i download into excel that all of the responses will go under the appropriate questions - has anyone had this happen - and do i need to worry that the right responses will appear under the right questions when i download?

i'm sincerely worried...i'd used the survey module before and not had this problem, so i'm confused and hoping that my data will not be totally screwed up...any ideas?

thanks,
eva
my sites: http://www.selfesteemcommunication.com

eva’s picture

the problem is that there are more questions than there are weights, (20 weights, 26 questions) - how do i add more weights, so that i can weight each question properly?

also, it would make sense to me that each answer is associated with each question so that when i download there shouldn't be an issue - anyone know for sure?

thanks,
eva
my sites: http://www.selfesteemcommunication.com

eva’s picture

i looked in the db, and yes, as i thought, there is an association between form field id numbers and the question numbers - or at least, that's what it looks like. i'll findout when i download all the survey responses into excel i s'pose. also, i increased the number (there are currently 10, ranging from -5 through 5) of weights available so that i have a unique one for each question in order to avoid this problem in the future. on line 159, i believe, in the form module - do a search for "weight" and on the line where it explains the weight, there is a number 5 - change that number to the number you want to increase the number of weights to - for example, if you have 20 questions, put 10 (-10 through 10). i put 50 so i don't have to change it for my next survey.

see below - change the 5 to the number you want - unless there's some reason not to?

$output.= form_weight(t('Weight'), 'weight', $field->weight, 5, t("The weights define the order in which the form fields are shown. Lighter fields \"float up\" towards the top of the category."));

hope that helps the next person...

eva