There are a few things going on here.
W/r/t the “win is not defined” error, in builder, go to the “form” trial, open the code component and in the right panel of the “each frame” tab it you will see this:
slider_8 = new visual.Slider({"win": win, "name": "slider_8", "size": [0.9, 0.05], "pos": [0, (- 0.2)], "labels": options, "ticks": [1, 2, 3, 4], "granularity": 1, "style": ["radio"], "color": "LightGray", "font": "HelveticaBold", "labelHeight": 0.025, "labelWrapWidth": 0.2, "flip": false});
console.log(options);
Replace it with this:
slider_8 = new visual.Slider({win: psychoJS.window, name: 'slider_8', size: [0.9, 0.05], pos: [0, (- 0.2)], labels: options, ticks: [1, 2, 3, 4], granularity: 1, style: ['radio'], color: 'LightGray', font: 'HelveticaBold', labelHeight: 0.025, labelWrapWidth: 0.2, flip: false});
console.log(options);
That should solve that problem I think. If that gives you trouble, try putting the quotes back around the labels before each colon, but I think this should work.
With regard to getting “none” as code, it’s printing whatever the “options” for that same slider are. The “options” variable is set in form_1.xlsx, and it looks like that column is blank, so that’s behaving as expected from a programming standpoint. Whatever you put in that column is what will appear in that output.