Background color


Author
Message
Corinne
Corinne
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 4, Visits: 1

Hi all,


I am using the "include"-command to merge the three blocks of my survey (as attached). I defined the background color as white in the first and the third block and in the second block as black. This works fine if I run the blocks one by one but in the inculded-file all backgrounds appear black. Also the size of the writing changes. What do I have to change in order for inquisit to use the background color and writing size I defined for each block individually.


Thank you for your help.


~Corinne



Attachments
All files.zip (281 views, 7.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

 I defined the background color as white in the first and the third block and in the second block as black.


No, you did not and that's the problem.


- Your first file as well as the third do not contain any /screencolor definition.


- The <defaults> element in your second file sets /screencolor to black.


As a consequence, the screencolor defined in <defaults> will apply to all elements.




Corinne
Corinne
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 4, Visits: 1

Dear Dave


Thank you for your fast reply.


I corrected my error and defined the background color for the first and the third block as white with the default-option. When I run all files now I get the error message "default is defined more than once". How do I avoid that?


Thank you in advance for your help.


~Corinne



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Corinne,


doing <include> is equivalent to having all contents in a single file. Naturally, you can only have one <defaults> element. If there were multiple, how would Inquisit know which one to apply to what?


How do I avoid that?


As detailed in the documentation, /screencolor is available for <block> and <survey>. Simply define the color you want for the respective element. If you don't, Inquisit will use whatever you put in <defaults>.


Corinne
Corinne
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 4, Visits: 1

Thank you Dave, it works now.


~Corinne


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search