I have created a csv file with the corresponding columns descripted at the page above which looks as follows
questionText
questionWidth
type
responseWidth
options
layout
Are you lucky?
1
rating
1
1,2,3,4,5
horiz
Are you sad?
1
rating
1
1,2,3,4,5
horiz
Are you alone?
1
rating
1
1,2,3,4,5
horiz
Are you happy?
1
rating
1
1,2,3,4,5
horiz
What I am wondering about is that in the component itself I am supposed to use ‘height’. But I am using ‘pix’ globally in my survey. This might be a mistake here?
Hi @Fabian, great to see you testing out the new Form component. Yes, for now the Form object can only be formatted correctly in height units. That also means that you need to set your global screen units to height. If you do this, you can still size and position your other components using pixels, if you set the units of each component to ‘pix’.
Perhaps we can have this as an issue on GitHub, so that Form does not depend on the experiment settings screen units.
Hi @Afrina_Athirah, with the Form component, the question and response width are proportions of 1, so you would have questionWidth as .7 and responseWidth as .3 to have questions covering 70% of the screen and responses covering 30% of the screen. Give that a go and let me know.
Hi there. I have changed the response width and question width like you suggested, the questions were displayed quite okay but the response component (yes, no) only the ‘yes’ came out but not the ‘no’. So we changed the response width to 0.1. However, to continue to the next routine, we have to add keyboard response which is the ‘spacebar’. We have to press the spacebar 5 times similar to the number of questions in the form. Is there any way that we could press the space bar one time only?
Also, if you look at the Builder demo called “BigFiveInventory”, there is a code component in there which shows you how to create a button to end the routine. Also, there is a conditional statement in the code that that only activates the button when all items are given responses.
Hi there,
I have a question about the form component too.
I would like to create a conditioning in which if the participant answered X (i.e, ‘No’) on the Y (i.e, third) question of the form, the experiment will skip the next routine.
Hello David,
I used the Form component in my experment, I have looked at the Builder demo “BigFiveInventory” to find the code to make the button activate when all items are given responses. However, I didn’t find it.
Is it in the path onlinematerials>rating>IPIP-Johnson2014 ?
Could you please share me that demo?
Thanks in advance.
Hi @Westwood, you should find the BFI demo in the demos menu in Builder, where the button code is in one of the Builder code components. Alternatively, in the standalone PsychoPy package, you should find it in psychopy/Lib/site-packages/psychopy/demos/builder/BigFiveInventory/