mdsteiner / ShinyPsych

A collection of psychology experiments programmed in Shiny
49 stars 14 forks source link

How do I increase the number of questions on a page? #73

Closed pbrews7933 closed 5 years ago

pbrews7933 commented 5 years ago

It seems to be limited to seven. I'd like to go higher up to 17 to map to a print version of the survey. Is there a parameter?

mdsteiner commented 5 years ago

I couldn't replicate this. Are the page numbers (in the "page" column of your survey.txt file) set to the same page? If I do this, I can add 17 questions on a single page.

pbrews7933 commented 5 years ago

I have redone this several times but cant get beyond 7. Do you see anything I'm doing to cause this in the query definitions file? I don't see anything obvious in the code. QLI_III.txt

pbrews7933 commented 5 years ago

I've think found the problem. It appears to be a question text that contains an apostrophe as in "Your family's health?". It seems to cause a failure in the read routine for the question definitions. I have simply reworded as "Your family health?"
Thanks

mdsteiner commented 5 years ago

Ah yes. But you actually don't have to rephrase it, I briefly checked and if you put the whole question (e.g., 8. Your family's health?) into double quotation marks (i.e. "8. Your family's health?"), it will also work

pbrews7933 commented 5 years ago

Thanks for all your help.